]> granicus.if.org Git - curl/commitdiff
urlapi: Expression 'storep' is always true
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 08:20:35 +0000 (10:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:07:48 +0000 (08:07 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

lib/urlapi.c

index 65e5ef58d9201c60de5f24cde5fa59a932a93c78..903fe1804e2b5e1e7225a2e6613bee7a4b88c20f 100644 (file)
@@ -1348,7 +1348,8 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
   default:
     return CURLUE_UNKNOWN_PART;
   }
-  if(storep) {
+  DEBUGASSERT(storep);
+  {
     const char *newp = part;
     size_t nalloc = strlen(part);