aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 12c70975d..592763f89 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -778,7 +778,8 @@ CURLcode Curl_open(struct SessionHandle **curl)
data->magic = CURLEASY_MAGIC_NUMBER;
- if( (status=Curl_resolver_init(&data->state.resolver)) != CURLE_OK ) {
+ status = Curl_resolver_init(&data->state.resolver);
+ if(status) {
DEBUGF(fprintf(stderr, "Error: resolver_init failed\n"));
free(data);
return status;