From: Pierre Joye Date: Sun, 4 Sep 2011 16:33:31 +0000 (+0000) Subject: - wrong variable used (ended as non initiazed usage) X-Git-Tag: php-5.5.0alpha1~1358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=678e8e28720ff25763d5f29ebbbe313318e6b856;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;