aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 2491fa2da..eb1fc2220 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2682,7 +2682,8 @@ static char *detect_proxy(struct connectdata *conn)
proxy = curl_getenv(envp);
}
}
- infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy);
+ if(proxy)
+ infof(conn->data, "Uses proxy env variable %s == '%s'\n", envp, proxy);
return proxy;
}