From b6e9c76d67a8cfb397598ac354d9aeb9609ba1d2 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 28 Jun 2014 12:20:35 +0800 Subject: Refactoring ext/intl (only compilerable now, far to finish :<) --- ext/intl/msgformat/msgformat_helpers.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/intl/msgformat/msgformat_helpers.cpp') diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp index 10e3fc3770..ea1ea729a3 100644 --- a/ext/intl/msgformat/msgformat_helpers.cpp +++ b/ext/intl/msgformat/msgformat_helpers.cpp @@ -343,10 +343,9 @@ static void umsg_set_timezone(MessageFormatter_object *mfo, } if (used_tz == NULL) { - zval nullzv = zval_used_for_init, - *zvptr = &nullzv; - used_tz = timezone_process_timezone_argument(zvptr, &err, - "msgfmt_format" TSRMLS_CC); + zval nullzv, *zvptr = &nullzv; + ZVAL_UNDEF(zvptr); + used_tz = timezone_process_timezone_argument(zvptr, &err, "msgfmt_format" TSRMLS_CC); if (used_tz == NULL) { continue; } -- cgit v1.2.1