Skip to content

Commit b85dc5c

Browse files
authored
Merge pull request #1816 from csware/init-variable
Don't use uninitialized variable
2 parents 11a3092 + f910d5e commit b85dc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
828828
int mingw_lstat(const char *file_name, struct stat *buf)
829829
{
830830
WIN32_FILE_ATTRIBUTE_DATA fdata;
831-
WIN32_FIND_DATAW findbuf;
831+
WIN32_FIND_DATAW findbuf = { 0 };
832832
wchar_t wfilename[MAX_LONG_PATH];
833833
int wlen = xutftowcs_long_path(wfilename, file_name);
834834
if (wlen < 0)

0 commit comments

Comments
 (0)