From: Daniel Stenberg Date: Thu, 19 Sep 2019 08:20:35 +0000 (+0200) Subject: urlapi: Expression 'storep' is always true X-Git-Tag: curl-7_67_0~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36fbb10071d8ae17676b7eb8ec437283cbc6113d;p=thirdparty%2Fcurl.git 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 65e5ef58d9..903fe1804e 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);