From: Anatol Belski Date: Thu, 15 Feb 2018 20:34:55 +0000 (+0100) Subject: Reduce variable scope X-Git-Tag: php-7.3.0alpha1~414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27908bace1d39c28a3645d40eccc56f63349128a;p=php Reduce variable scope --- diff --git a/ext/intl/collator/collator_is_numeric.c b/ext/intl/collator/collator_is_numeric.c index e3535e7d4b..c60724bcfa 100644 --- a/ext/intl/collator/collator_is_numeric.c +++ b/ext/intl/collator/collator_is_numeric.c @@ -25,7 +25,6 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */ const UChar *u = nptr, *nstart; UChar c = *u; int any = 0; - ALLOCA_FLAG(use_heap); while (u_isspace(c)) { c = *++u; @@ -72,6 +71,7 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */ char buf[64], *numbuf, *bufpos; size_t length = u - nstart; double value; + ALLOCA_FLAG(use_heap); if (length < sizeof(buf)) { numbuf = buf;