fix strptime output for %C without %y
authorJulien Ramseier <j.ramseier@gmail.com>
Tue, 21 Mar 2017 16:35:16 +0000 (12:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 21 Mar 2017 16:35:16 +0000 (12:35 -0400)
commitb6e1fe0d5e78dac647e85d49c2d537bb071ba49e
tree6f9a689e136efb6a152436c0975e857be7f4f135
parent834ef7aff5695e79b1feeacfdc15eaba6a42cab9
fix strptime output for %C without %y

in this case, a potentially-uninitialized or unrelated existing value
in tm_year was being used. instead use 0 if %y was not present.
src/time/strptime.c