1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

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

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