mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix null pointer dereference
This commit is contained in:
parent
8b68ee50c0
commit
b8169e26eb
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ static int uuid_from_string(const char *string, unsigned char *uuid)
|
|||
char unformatted[kUnformattedUUIDStringLength];
|
||||
int i;
|
||||
|
||||
if (strlen(string) != kUUIDStringLength)
|
||||
if (NULL == string || strlen(string) != kUUIDStringLength)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue