mirror of
https://github.com/git-for-windows/git.git
synced 2026-07-06 21:12:15 -05:00
Merge pull request #1816 from csware/init-variable
Don't use uninitialized variable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user