gwynne                                   Sun, 07 Aug 2011 18:12:52 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314445

Log:
possible use without init fixed

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/date/php_date.c
    U   php/php-src/branches/PHP_5_4/ext/date/php_date.c
    U   php/php-src/trunk/ext/date/php_date.c

Modified: php/php-src/branches/PHP_5_3/ext/date/php_date.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/php_date.c    2011-08-07 17:51:59 UTC 
(rev 314444)
+++ php/php-src/branches/PHP_5_3/ext/date/php_date.c    2011-08-07 18:12:52 UTC 
(rev 314445)
@@ -2378,7 +2378,7 @@
 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;

Modified: php/php-src/branches/PHP_5_4/ext/date/php_date.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/date/php_date.c    2011-08-07 17:51:59 UTC 
(rev 314444)
+++ php/php-src/branches/PHP_5_4/ext/date/php_date.c    2011-08-07 18:12:52 UTC 
(rev 314445)
@@ -2373,7 +2373,7 @@
 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;

Modified: php/php-src/trunk/ext/date/php_date.c
===================================================================
--- php/php-src/trunk/ext/date/php_date.c       2011-08-07 17:51:59 UTC (rev 
314444)
+++ php/php-src/trunk/ext/date/php_date.c       2011-08-07 18:12:52 UTC (rev 
314445)
@@ -2373,7 +2373,7 @@
 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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to