fwcontrol: Fix PVS 1655
Fix char pointer *nodestr was compared with the '\0' value. Change-Id: Ie6b0beb8b94b35d6824ab205688ce1a54bcd6a74 Reviewed-on: https://review.haiku-os.org/688 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
63757dbb24
commit
f54b080275
@ -139,7 +139,7 @@ str2node(int fd, const char *nodestr)
|
|||||||
char *endptr;
|
char *endptr;
|
||||||
int i, node;
|
int i, node;
|
||||||
|
|
||||||
if (nodestr == '\0')
|
if (nodestr == NULL || *nodestr == '\0')
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user