aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 10:20:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:48 +0200
commit36fbb10071d8ae17676b7eb8ec437283cbc6113d (patch)
tree4831e3fb045dd23561b34c704838da5d7873c989
parenta6451487d4433becf751f8dca1e5b41e691b2a70 (diff)
urlapi: Expression 'storep' is always true
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/urlapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/urlapi.c b/lib/urlapi.c
index 65e5ef58d..903fe1804 100644
--- a/lib/urlapi.c
+++ b/lib/urlapi.c
@@ -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);