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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user