aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 8c32f035c..901b1495c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1318,7 +1318,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
result = Curl_setstropt(&data->set.str[STRING_SET_URL],
va_arg(param, char *));
data->change.url = data->set.str[STRING_SET_URL];
- data->change.url_changed = TRUE;
+ if (data->change.url)
+ data->change.url_changed = TRUE;
break;
case CURLOPT_PORT:
/*