Skip to content

Commit 9d8417f

Browse files
committed
Reduce variable scope
1 parent 02aea89 commit 9d8417f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32/ioutil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char
376376
{/*{{{*/
377377
FILE *ret;
378378
wchar_t modew[16] = {0};
379-
int err = 0, i = 0;
379+
int i = 0;
380380

381381
PHP_WIN32_IOUTIL_INIT_W(patha)
382382
if (!pathw) {
@@ -393,7 +393,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char
393393

394394
ret = php_win32_ioutil_fopen_w(pathw, modew);
395395
if (!ret) {
396-
err = GetLastError();
396+
int err = GetLastError();
397397
PHP_WIN32_IOUTIL_CLEANUP_W()
398398
SET_ERRNO_FROM_WIN32_CODE(err);
399399
return NULL;

0 commit comments

Comments
 (0)