aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-17 09:29:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-17 09:29:30 +0000
commit9935d33b8e63bc1772e1975ad66475375672b34b (patch)
tree3e8a6ab1c031e7fe3d1dd4394f33a22da56c2f4f /lib
parentd42c6b7e78a30c7405c4304864f5352c5eb7eea6 (diff)
make empty names look fine in verbose output
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 217103c50..e277194fb 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -238,7 +238,7 @@ CURLcode http_auth_headers(struct connectdata *conn,
Curl_http_auth_stage(data, 401);
}
infof(data, "Proxy auth using %s with user '%s'\n",
- auth, conn->proxyuser);
+ auth, conn->proxyuser?conn->proxyuser:"");
}
/* Send web authentication header if needed */
if (data->state.authstage == 401) {
@@ -287,7 +287,7 @@ CURLcode http_auth_headers(struct connectdata *conn,
}
if(auth)
infof(data, "Server auth using %s with user '%s'\n",
- auth, conn->user);
+ auth, conn->user?conn->user:"");
}
}
else