From: Anatol Belski Date: Thu, 15 Feb 2018 20:18:58 +0000 (+0100) Subject: Reduce variable scope X-Git-Tag: php-7.3.0alpha1~418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d8417f19051596331181b736d18fdc55f1d6b0d;p=php Reduce variable scope --- diff --git a/win32/ioutil.h b/win32/ioutil.h index 41773b306e..5e25333936 100644 --- a/win32/ioutil.h +++ b/win32/ioutil.h @@ -376,7 +376,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char {/*{{{*/ FILE *ret; wchar_t modew[16] = {0}; - int err = 0, i = 0; + int i = 0; PHP_WIN32_IOUTIL_INIT_W(patha) if (!pathw) { @@ -393,7 +393,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char ret = php_win32_ioutil_fopen_w(pathw, modew); if (!ret) { - err = GetLastError(); + int err = GetLastError(); PHP_WIN32_IOUTIL_CLEANUP_W() SET_ERRNO_FROM_WIN32_CODE(err); return NULL;