From ccdfed5587d4da1f2a4154ed151626d79765cc8f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 6 Dec 2002 19:59:04 +0000 Subject: Ensure global_scope() returns "", not the NULL string. Froma tpot fix. Jeremy. (This used to be commit 0ff254264e6e43399404595bc87b5bd889e17952) --- source3/lib/util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/lib/util.c') 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; } -- cgit