mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
urlapi: Expression 'storep' is always true
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
a6451487d4
commit
36fbb10071
@ -1348,7 +1348,8 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||||||
default:
|
default:
|
||||||
return CURLUE_UNKNOWN_PART;
|
return CURLUE_UNKNOWN_PART;
|
||||||
}
|
}
|
||||||
if(storep) {
|
DEBUGASSERT(storep);
|
||||||
|
{
|
||||||
const char *newp = part;
|
const char *newp = part;
|
||||||
size_t nalloc = strlen(part);
|
size_t nalloc = strlen(part);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user