]> granicus.if.org Git - php/commitdiff
- wrong variable used (ended as non initiazed usage)
authorPierre Joye <pajoye@php.net>
Sun, 4 Sep 2011 16:33:51 +0000 (16:33 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 4 Sep 2011 16:33:51 +0000 (16:33 +0000)
ext/intl/formatter/formatter_attr.c

index b306bbedeb9f4a265f044a280821b65505a3c8e5..448a9db721d1b91f2160c72fc0e52850740bb9b7 100755 (executable)
@@ -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;