From: Anatol Belski Date: Thu, 15 Feb 2018 20:26:01 +0000 (+0100) Subject: Reduce variable scope X-Git-Tag: php-7.3.0alpha1~416 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9258be351ff90bbea011370548011292fa93bc88;p=php Reduce variable scope --- diff --git a/ext/intl/collator/collator_convert.c b/ext/intl/collator/collator_convert.c index 2d431a19d6..63132b1eb0 100644 --- a/ext/intl/collator/collator_convert.c +++ b/ext/intl/collator/collator_convert.c @@ -382,13 +382,12 @@ zval* collator_convert_string_to_number_if_possible( zval* str, zval *rv ) zval* collator_make_printable_zval( zval* arg, zval *rv) { zval arg_copy; - int use_copy = 0; zval* str = NULL; if( Z_TYPE_P(arg) != IS_STRING ) { - use_copy = zend_make_printable_zval(arg, &arg_copy); + int use_copy = zend_make_printable_zval(arg, &arg_copy); if( use_copy ) {