From 0af0ad4ef77bf8a2ca67c03267a4954cabbac059 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 10 Jul 2006 11:25:59 +0000 Subject: [PATCH] initialize vars --- ext/date/php_date.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 3a78c273db7..d8c28bbdb0f 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -797,7 +797,7 @@ static char *date_format(char *format, int format_len, int *return_len, timelib_ 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 @@ PHPAPI int php_idate(char format, time_t ts, int localtime) 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 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt) { 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 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt) 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);