summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-16 11:18:04 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-16 11:18:04 +0000
commitb3b634ff4251cca647e1e545fe1e4160736d96b9 (patch)
tree4980f28cca8a5037471aa0db2329bff5f2877763 /source3/smbd
parent54e1176ba17eaaba82254e4b629fa135802cec10 (diff)
downloadsamba-b3b634ff4251cca647e1e545fe1e4160736d96b9.tar.gz
samba-b3b634ff4251cca647e1e545fe1e4160736d96b9.tar.bz2
samba-b3b634ff4251cca647e1e545fe1e4160736d96b9.zip
use string_set() instead of string_init()
bug pointed out by Richard (This used to be commit 070f49397ff24e4d6ba7c2c1cfaef2dfa0944bd0)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/conn.c8
-rw-r--r--source3/smbd/files.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index 5dc904bd91..83289b2184 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -115,10 +115,10 @@ connection_struct *conn_new(void)
num_open++;
- string_init(&conn->user,"");
- string_init(&conn->dirpath,"");
- string_init(&conn->connectpath,"");
- string_init(&conn->origpath,"");
+ string_set(&conn->user,"");
+ string_set(&conn->dirpath,"");
+ string_set(&conn->connectpath,"");
+ string_set(&conn->origpath,"");
DLIST_ADD(Connections, conn);
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index d6203580cf..dd1f7037f6 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -97,7 +97,7 @@ files_struct *file_new(void )
files_used++;
fsp->fnum = i + FILE_HANDLE_OFFSET;
- string_init(&fsp->fsp_name,"");
+ string_set(&fsp->fsp_name,"");
DLIST_ADD(Files, fsp);