]> 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 24a44b91107cc906a9653ec926b63e3e2b179fea..c9a8465592bca5e82af4192f6073fe9fee138e5c 100644 (file)
@@ -2373,7 +2373,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;