Skip to content
Permalink
Browse files

Merge pull request #1816 from csware/init-variable

Don't use uninitialized variable
  • Loading branch information...
dscho committed Oct 11, 2018
2 parents 11a3092 + f910d5e commit b85dc5cd7c3c013a5e53fc1c9cffb507733efc09
Showing with 1 addition and 1 deletion.
  1. +1 −1 compat/mingw.c
@@ -828,7 +828,7 @@ static int has_valid_directory_prefix(wchar_t *wfilename)
int mingw_lstat(const char *file_name, struct stat *buf)
{
WIN32_FILE_ATTRIBUTE_DATA fdata;
WIN32_FIND_DATAW findbuf;
WIN32_FIND_DATAW findbuf = { 0 };
wchar_t wfilename[MAX_LONG_PATH];
int wlen = xutftowcs_long_path(wfilename, file_name);
if (wlen < 0)

0 comments on commit b85dc5c

Please sign in to comment.
You can’t perform that action at this time.