[PATCH] shell32: Always initialize local buffer (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Mon Dec 12 04:30:57 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/shell32/shellpath.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index 1fa5f23..6cfcc1e 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -4728,6 +4728,7 @@ HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD flags, HANDLE t
shgfp_flags = flags & KF_FLAG_DEFAULT_PATH ? SHGFP_TYPE_DEFAULT : SHGFP_TYPE_CURRENT;
+ *tempW = 0;
type = CSIDL_Data[folder].type;
switch (type)
{
--
2.10.2
More information about the wine-patches
mailing list