Permalink
Browse files

- Fixed build using g++ (which complains about jump that crosses init…

…ialization)
  • Loading branch information...
1 parent 6ea4d0d commit 82740ef31e5c8a6497fca6a37637a840ee80b030 @felipensp felipensp committed May 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 ext/intl/calendar/calendar_methods.cpp
View
3 ext/intl/calendar/calendar_methods.cpp
@@ -1118,6 +1118,7 @@ U_CFUNC PHP_FUNCTION(intlcal_from_date_time)
int locale_str_len;
TimeZone *timeZone;
UErrorCode status = U_ZERO_ERROR;
+ Calendar *cal;
intl_error_reset(NULL TSRMLS_CC);
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|s!",
@@ -1172,7 +1173,7 @@ U_CFUNC PHP_FUNCTION(intlcal_from_date_time)
locale_str = const_cast<char*>(intl_locale_get_default(TSRMLS_C));
}
- Calendar *cal = Calendar::createInstance(timeZone,
+ cal = Calendar::createInstance(timeZone,
Locale::createFromName(locale_str), status);
if (cal == NULL) {
delete timeZone;

0 comments on commit 82740ef

Please sign in to comment.