summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-16 11:07:11 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-16 11:07:11 +0000
commit5eae2eaebeff8819c0f840e52814e0c69907032e (patch)
tree5d03b2670444b39a8545ff79f3e4f79753c5d2bd /source3
parent0cbae6fc3dda6a09ae99a0cf9a72bd21543a1e12 (diff)
downloadsamba-5eae2eaebeff8819c0f840e52814e0c69907032e.tar.gz
samba-5eae2eaebeff8819c0f840e52814e0c69907032e.tar.bz2
samba-5eae2eaebeff8819c0f840e52814e0c69907032e.zip
make string_init() static
use string_set() instead, to avoid the bug Richard discovered (This used to be commit fdcbf6b52d8373bf8f35718a9649788415c23342)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/doscalls.c2
-rw-r--r--source3/lib/util_str.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/doscalls.c b/source3/lib/doscalls.c
index 1d459898b5..4ce84cbca2 100644
--- a/source3/lib/doscalls.c
+++ b/source3/lib/doscalls.c
@@ -407,7 +407,7 @@ char *dos_GetWd(char *path)
getwd_cache_init = True;
for (i=0;i<MAX_GETWDCACHE;i++)
{
- string_init(&ino_list[i].dos_path,"");
+ string_set(&ino_list[i].dos_path,"");
ino_list[i].valid = False;
}
}
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 58718f395a..b16de3efda 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1008,7 +1008,7 @@ static char *null_string = NULL;
/****************************************************************************
set a string value, allocing the space for the string
****************************************************************************/
-BOOL string_init(char **dest,const char *src)
+static BOOL string_init(char **dest,const char *src)
{
size_t l;
if (!src)