aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-11-05 23:05:52 -0400
committerJay Satiro <raysatiro@yahoo.com>2016-11-05 23:06:28 -0400
commit4564636781cbb1f8735bc636ff8ba1719ad10ace (patch)
treed07d7bee392ac22c7285aad27f6c23090b957717 /lib/urldata.h
parentebeffe81d8f5bb431c2e1c3968c48f28b7d06869 (diff)
easy: Initialize info variables on easy init and duphandle
- Call Curl_initinfo on init and duphandle. Prior to this change the statistical and informational variables were simply zeroed by calloc on easy init and duphandle. While zero is the correct default value for almost all info variables, there is one where it isn't (filetime initializes to -1). Bug: https://github.com/curl/curl/issues/1103 Reported-by: Neal Poole
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 7c7bf1ba0..938462605 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1105,7 +1105,7 @@ struct connectdata {
/*
* Struct to keep statistical and informational data.
- * All variables in this struct must be reset in Curl_initinfo().
+ * All variables in this struct must be initialized/reset in Curl_initinfo().
*/
struct PureInfo {
int httpcode; /* Recent HTTP, FTP, RTSP or SMTP response code */