summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c6
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;
}