derick Sun Jul 3 14:49:07 2005 EDT
Modified files:
/php-src/ext/date/lib parse_tz.c
Log:
- Fixed unintialized variable issue.
http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_tz.c?r1=1.17&r2=1.18&ty=u
Index: php-src/ext/date/lib/parse_tz.c
diff -u php-src/ext/date/lib/parse_tz.c:1.17
php-src/ext/date/lib/parse_tz.c:1.18
--- php-src/ext/date/lib/parse_tz.c:1.17 Thu Jun 30 17:38:06 2005
+++ php-src/ext/date/lib/parse_tz.c Sun Jul 3 14:49:07 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_tz.c,v 1.17 2005/06/30 21:38:06 derick Exp $ */
+/* $Id: parse_tz.c,v 1.18 2005/07/03 18:49:07 derick Exp $ */
#include "timelib.h"
@@ -239,6 +239,7 @@
uint32_t i;
if (!tz->timecnt || !tz->trans) {
+ *transition_time = 0;
if (tz->typecnt == 1) {
return &(tz->type[0]);
}
@@ -301,6 +302,7 @@
tmp->is_dst = to->isdst;
tmp->transistion_time = transistion_time;
} else {
+ offset = 0;
abbr = tz->timezone_abbr;
tmp->is_dst = 0;
tmp->transistion_time = 0;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php