From: Daniel Stenberg Date: Thu, 19 Sep 2019 08:20:35 +0000 (+0200) Subject: urlapi: Expression 'storep' is always true X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36fbb10071d8ae17676b7eb8ec437283cbc6113d;p=curl urlapi: Expression 'storep' is always true Fixes warning detected by PVS-Studio Fixes #4374 --- 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);