aboutsummaryrefslogtreecommitdiff
path: root/lib/urlapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/urlapi.c')
-rw-r--r--lib/urlapi.c3
1 files changed, 2 insertions, 1 deletions
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);