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:
Murai Takashi 2018-11-09 20:44:39 +09:00 committed by waddlesplash
parent 63757dbb24
commit f54b080275

View File

@ -139,7 +139,7 @@ str2node(int fd, const char *nodestr)
char *endptr;
int i, node;
if (nodestr == '\0')
if (nodestr == NULL || *nodestr == '\0')
return (-1);
/*