]> git.ipfire.org Git - thirdparty/curl.git/commit
easy: Initialize info variables on easy init and duphandle
authorJay Satiro <raysatiro@yahoo.com>
Sun, 6 Nov 2016 03:05:52 +0000 (23:05 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 6 Nov 2016 03:06:28 +0000 (23:06 -0400)
commit4564636781cbb1f8735bc636ff8ba1719ad10ace
treed07d7bee392ac22c7285aad27f6c23090b957717
parentebeffe81d8f5bb431c2e1c3968c48f28b7d06869
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
lib/easy.c
lib/getinfo.c
lib/url.c
lib/urldata.h
tests/data/Makefile.inc
tests/data/test1534 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1534.c [new file with mode: 0644]