1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

Ensure global_scope() returns "", not the NULL string. Froma tpot fix.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 21eb4b5a2d
commit 0ff254264e
2 changed files with 7 additions and 1 deletions

View File

@@ -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;
}