tony2001                Mon Jul 10 11:26:22 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/date   php_date.c 
  Log:
  MFH: initialize vars
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.15&r2=1.43.2.45.2.16&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.45.2.15 
php-src/ext/date/php_date.c:1.43.2.45.2.16
--- php-src/ext/date/php_date.c:1.43.2.45.2.15  Sun Jul  2 00:11:05 2006
+++ php-src/ext/date/php_date.c Mon Jul 10 11:26:22 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.43.2.45.2.15 2006/07/02 00:11:05 bjori Exp $ */
+/* $Id: php_date.c,v 1.43.2.45.2.16 2006/07/10 11:26:22 tony2001 Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -696,7 +696,7 @@
        smart_str            string = {0};
        int                  i;
        char                 buffer[33];
-       timelib_time_offset *offset;
+       timelib_time_offset *offset = NULL;
        timelib_sll          isoweek, isoyear;
        int                  rfc_colon = 0;
 
@@ -878,7 +878,7 @@
        timelib_time   *t;
        timelib_tzinfo *tzi;
        int retval = -1;
-       timelib_time_offset *offset;
+       timelib_time_offset *offset = NULL;
        timelib_sll isoweek, isoyear;
 
        t = timelib_time_ctor();
@@ -1120,7 +1120,7 @@
 {
        long hou, min, sec, mon, day, yea, dst = -1;
        timelib_time *now;
-       timelib_tzinfo *tzi;
+       timelib_tzinfo *tzi = NULL;
        long ts, adjust_seconds = 0;
        int error;
 
@@ -1253,7 +1253,7 @@
        size_t               buf_len = 64, real_len;
        timelib_time        *ts;
        timelib_tzinfo      *tzi;
-       timelib_time_offset *offset;
+       timelib_time_offset *offset = NULL;
 
        timestamp = (long) time(NULL);
 

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

Reply via email to