]> granicus.if.org Git - php/commitdiff
possible use without init fixed
authorGwynne Raskind <gwynne@php.net>
Sun, 7 Aug 2011 18:12:52 +0000 (18:12 +0000)
committerGwynne Raskind <gwynne@php.net>
Sun, 7 Aug 2011 18:12:52 +0000 (18:12 +0000)
ext/date/php_date.c

index 26d7bb1ad5af7229a8f436302971e3eea77ef24c..f647c7e58439852947bd5ce82553e41f4ff190f8 100644 (file)
@@ -2378,7 +2378,7 @@ static void update_errors_warnings(timelib_error_container *last_errors TSRMLS_D
 PHPAPI int php_date_initialize(php_date_obj *dateobj, /*const*/ char *time_str, int time_str_len, char *format, zval *timezone_object, int ctor TSRMLS_DC)
 {
        timelib_time   *now;
-       timelib_tzinfo *tzi;
+       timelib_tzinfo *tzi = NULL;
        timelib_error_container *err = NULL;
        int type = TIMELIB_ZONETYPE_ID, new_dst;
        char *new_abbr;