OSDN Git Service

Fix uninitialized variable
authorsdottaka <none@none>
Tue, 12 Feb 2013 04:11:54 +0000 (20:11 -0800)
committersdottaka <none@none>
Tue, 12 Feb 2013 04:11:54 +0000 (20:11 -0800)
Src/FileOrFolderSelect.cpp

index 6f323d8..21b8bb6 100644 (file)
@@ -82,7 +82,7 @@ BOOL SelectFile(HWND parent, String& path, LPCTSTR initialPath /*=NULL*/,
 
        // This will tell common file dialog what to show
        // and also this will hold its return value
-       TCHAR sSelectedFile[MAX_PATH];
+       TCHAR sSelectedFile[MAX_PATH] = {0};
 
        // check if specified path is a file
        if (initialPath && initialPath[0])