diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-11-15 20:10:25 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-11-15 20:10:25 +0000 |
commit | 52077eb28c877225d54e4bc725446bf01da7c726 (patch) | |
tree | ac34f09d342e3349bf57b92663f50515bcd7d74c /newlib/libc/time | |
parent | a6a4e782ff834cb66c71f3e4468137265a0f8df0 (diff) | |
download | cygnal-52077eb28c877225d54e4bc725446bf01da7c726.tar.gz cygnal-52077eb28c877225d54e4bc725446bf01da7c726.tar.bz2 cygnal-52077eb28c877225d54e4bc725446bf01da7c726.zip |
2006-11-15 Till Straumann <strauman@slac.stanford.edu>
* libc/time/tzset_r.c (_tzset_r): Initialize local variable.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r-- | newlib/libc/time/tzset_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c index 36b87d7b2..59c7c5ff5 100644 --- a/newlib/libc/time/tzset_r.c +++ b/newlib/libc/time/tzset_r.c @@ -104,6 +104,7 @@ _DEFUN (_tzset_r, (reent_ptr), mm = 0; ss = 0; + n = 0; if (sscanf (tzenv, "%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n) <= 0) tz->__tzrule[1].offset = tz->__tzrule[0].offset - 3600; else |