From 33462fb68508c836fc4b92a06ec6f7bc39266624 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 16 Sep 2001 23:55:37 +0000
Subject: [PATCH] smb.last_error is now initialized (to empty string) in
 smb_open().

---
 src/smblib/smblib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c
index e52378f5a0..771928aa84 100644
--- a/src/smblib/smblib.c
+++ b/src/smblib/smblib.c
@@ -94,6 +94,7 @@ int SMBCALL smb_open(smb_t* smb)
 	if(!smb->retry_time)
 		smb->retry_time=10;
 	smb->shd_fp=smb->sdt_fp=smb->sid_fp=NULL;
+	smb->last_error[0]=0;
 	sprintf(str,"%s.shd",smb->file);
 	if((file=sopen(str,O_RDWR|O_CREAT|O_BINARY,SH_DENYNO))==-1
 		|| (smb->shd_fp=fdopen(file,"r+b"))==NULL) {
-- 
GitLab