diff --git a/lib/getinfo.c b/lib/getinfo.c
index e6d07c269..bbda35dd0 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -53,6 +53,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data)
   pro->t_redirect = 0;
 
   info->httpcode = 0;
+  info->httpproxycode = 0;
   info->httpversion = 0;
   info->filetime = -1; /* -1 is an illegal time and thus means unknown */
   info->timecond = FALSE;