tony2001                Mon Jul 10 11:26:00 2006 UTC

  Modified files:              
    /php-src/ext/date   php_date.c 
  Log:
  initialize vars
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.104&r2=1.105&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.104 php-src/ext/date/php_date.c:1.105
--- php-src/ext/date/php_date.c:1.104   Sun Jul  2 00:10:36 2006
+++ php-src/ext/date/php_date.c Mon Jul 10 11:25:59 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.104 2006/07/02 00:10:36 bjori Exp $ */
+/* $Id: php_date.c,v 1.105 2006/07/10 11:25:59 tony2001 Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -797,7 +797,7 @@
        smart_str            string = {0};
        int                  i, no_free, length;
        char                *buffer;
-       timelib_time_offset *offset;
+       timelib_time_offset *offset = NULL;
        timelib_sll          isoweek, isoyear;
        php_locale_data *loc_dat;
        int                  rfc_colon = 0;
@@ -1000,7 +1000,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();
@@ -1242,7 +1242,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;
 
@@ -1375,7 +1375,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