]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_getparam: remove Redundant Condition
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Dec 2024 06:48:11 +0000 (07:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Dec 2024 08:20:05 +0000 (09:20 +0100)
Pointed out by CodeSonar

Closes #15698

src/tool_getparam.c

index 35704575c938e823febc62b5f4cbad60b8f14b10..d352c80a5282615e2e7662bb1c04fa450893915a 100644 (file)
@@ -1064,7 +1064,7 @@ static ParameterError parse_localport(struct OperationConfig *config,
   if(*p) {
     pp = p;
     /* check for ' - [end]' */
-    if(*pp && ISSPACE(*pp))
+    if(ISSPACE(*pp))
       pp++;
     if(*pp != '-')
       return PARAM_BAD_USE;