Skip to content

Commit e24a801

Browse files
committed
fix uninitialized var
1 parent a51cb39 commit e24a801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ PW32IO wchar_t *php_win32_ioutil_getcwd_w(wchar_t *buf, size_t len)
399399
{/*{{{*/
400400
DWORD err = 0;
401401
wchar_t *tmp_buf = NULL;
402-
DWORD tmp_len;
402+
DWORD tmp_len = (DWORD)len;
403403

404404
/* If buf was NULL, the result has to be freed outside here. */
405405
if (!buf) {

0 commit comments

Comments
 (0)