BPackageInfo::_ExtractUsers(): fix no group case
This commit is contained in:
@@ -1654,7 +1654,7 @@ BPackageInfo::_ExtractUsers(BMessage* archive, const char* field,
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
BStringList groups;
|
BStringList groups;
|
||||||
if (!groupsString.Split(" ", false, groups))
|
if (!groupsString.IsEmpty() && !groupsString.Split(" ", false, groups))
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
BUser* user = new(std::nothrow) BUser(name, realName, home, shell,
|
BUser* user = new(std::nothrow) BUser(name, realName, home, shell,
|
||||||
|
|||||||
Reference in New Issue
Block a user