com php-src: fix uninitialized var: win32/ioutil.c

From: Date: Sun, 09 Jul 2017 15:54:46 +0000
Subject: com php-src: fix uninitialized var: win32/ioutil.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98477@lists.php.net to get a copy of this message
Commit: e24a8012a0288cdb7392101b46031f6890cb1f14 Author: Anatol Belski <ab@php.net> Sun, 9 Jul 2017 17:54:46 +0200 Parents: a51cb393b1accc29200e8f57ef867a6a47b2564f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e24a8012a0288cdb7392101b46031f6890cb1f14 Log: fix uninitialized var Changed paths: M win32/ioutil.c Diff: diff --git a/win32/ioutil.c b/win32/ioutil.c index bd2f16f..aa56b94 100644 --- a/win32/ioutil.c +++ b/win32/ioutil.c @@ -399,7 +399,7 @@ PW32IO wchar_t *php_win32_ioutil_getcwd_w(wchar_t *buf, size_t len) {/*{{{*/ DWORD err = 0; wchar_t *tmp_buf = NULL; - DWORD tmp_len; + DWORD tmp_len = (DWORD)len; /* If buf was NULL, the result has to be freed outside here. */ if (!buf) {

« previous php.cvs (#98477) next »