urlapi: Expression 'storep' is always true

Fixes warning detected by PVS-Studio
Fixes #4374
This commit is contained in:
Daniel Stenberg 2019-09-19 10:20:35 +02:00
parent a6451487d4
commit 36fbb10071
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 1 deletions

View 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);