From 4ba5c243d0c3e29ef2373247464fbf925def8164 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 7 Dec 2013 21:15:23 +0200 Subject: [PATCH] Fixed a bug in get_long_basename which broke creation of new files. --- src/w32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32.c b/src/w32.c index e2649167aee..7e32da84c58 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2126,7 +2126,7 @@ get_long_basename (char * name, char * buf, int size) HANDLE dir_handle; char fname_utf8[MAX_UTF8_PATH]; int len = 0; - int cstatus; + int cstatus = -1; /* Must be valid filename, no wild cards or other invalid characters. */ if (strpbrk (name, "*?|<>\"")) -- 2.39.2