From f54b0802755873ab9d76b53855e6ec092e8d996c Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Fri, 9 Nov 2018 20:44:39 +0900 Subject: [PATCH] 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 --- src/bin/fwcontrol/fwcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/fwcontrol/fwcontrol.c b/src/bin/fwcontrol/fwcontrol.c index eac83826b3..33fd80de9f 100644 --- a/src/bin/fwcontrol/fwcontrol.c +++ b/src/bin/fwcontrol/fwcontrol.c @@ -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); /*