From 36fbb10071d8ae17676b7eb8ec437283cbc6113d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Sep 2019 10:20:35 +0200 Subject: urlapi: Expression 'storep' is always true Fixes warning detected by PVS-Studio Fixes #4374 --- lib/urlapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/urlapi.c') 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); -- cgit v1.2.3