summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_helpers.cpp
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-28 12:20:35 +0800
committerXinchen Hui <laruence@php.net>2014-06-28 12:20:35 +0800
commitb6e9c76d67a8cfb397598ac354d9aeb9609ba1d2 (patch)
tree74a1e3cec4c687e7f07d4b3f3b7720fe7fa39158 /ext/intl/msgformat/msgformat_helpers.cpp
parent7614fe810eba7ce16f100c2c9e592922fd9e739c (diff)
downloadphp-git-b6e9c76d67a8cfb397598ac354d9aeb9609ba1d2.tar.gz
Refactoring ext/intl (only compilerable now, far to finish :<)
Diffstat (limited to 'ext/intl/msgformat/msgformat_helpers.cpp')
-rw-r--r--ext/intl/msgformat/msgformat_helpers.cpp7
1 files changed, 3 insertions, 4 deletions
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;
}