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 <[email protected]>
This commit is contained in:
Murai Takashi
2018-11-15 19:14:19 +00:00
committed by waddlesplash
parent 63757dbb24
commit f54b080275
+1 -1
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);
/*