diff options
author | Jeremy Allison <jra@samba.org> | 2002-12-06 19:58:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-12-06 19:58:27 +0000 |
commit | 8c13b09b9d8dc8f4d7d3515f35dbd2fb58ff3e0e (patch) | |
tree | eb7d790d045dba31ab28cc68560ff96263ede467 /source3/lib/util.c | |
parent | 1815dad960e7e418dbeb7eb3d4d014322c7a093f (diff) | |
download | samba-8c13b09b9d8dc8f4d7d3515f35dbd2fb58ff3e0e.tar.gz samba-8c13b09b9d8dc8f4d7d3515f35dbd2fb58ff3e0e.tar.bz2 samba-8c13b09b9d8dc8f4d7d3515f35dbd2fb58ff3e0e.zip |
Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
(This used to be commit 7185b846e41da2bf7edaa7f3edeff1cc1486d28b)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 2e43281a88..a83e17c661 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -140,8 +140,14 @@ BOOL set_global_scope(const char *scope) return True; } +/********************************************************************* + Ensure scope is never null string. +*********************************************************************/ + const char *global_scope(void) { + if (!smb_scope) + set_global_scope(""); return smb_scope; } |