From 52077eb28c877225d54e4bc725446bf01da7c726 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 15 Nov 2006 20:10:25 +0000 Subject: 2006-11-15 Till Straumann * libc/time/tzset_r.c (_tzset_r): Initialize local variable. --- newlib/libc/time/tzset_r.c | 1 + 1 file changed, 1 insertion(+) (limited to 'newlib/libc/time') 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 -- cgit v1.2.3