From: Pierre Joye Date: Sun, 4 Sep 2011 16:33:51 +0000 (+0000) Subject: - wrong variable used (ended as non initiazed usage) X-Git-Tag: php-5.3.9RC1~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0792c25906b685e08bfd2436b5f41cd0319477b;p=php - wrong variable used (ended as non initiazed usage) --- diff --git a/ext/intl/formatter/formatter_attr.c b/ext/intl/formatter/formatter_attr.c index b306bbedeb..448a9db721 100755 --- a/ext/intl/formatter/formatter_attr.c +++ b/ext/intl/formatter/formatter_attr.c @@ -77,11 +77,11 @@ PHP_FUNCTION( numfmt_get_attribute ) break; case UNUM_ROUNDING_INCREMENT: { - double value = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute); - if(value == -1) { + double value_double = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute); + if(value_double == -1) { INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; } else { - RETVAL_DOUBLE(value); + RETVAL_DOUBLE(value_double); } } break;