Alex Henrie : shell32: Fix use of uninitialized variable in paste_pidls (Clang).

Alexandre Julliard julliard at winehq.org
Thu Aug 5 16:13:40 CDT 2021


Module: wine
Branch: master
Commit: adb4259aa92599bf7bbad8271f1a372027443a46
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=adb4259aa92599bf7bbad8271f1a372027443a46

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Tue Aug  3 22:03:48 2021 -0600

shell32: Fix use of uninitialized variable in paste_pidls (Clang).

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/shlview_cmenu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/shlview_cmenu.c b/dlls/shell32/shlview_cmenu.c
index ef11957e921..e116e343446 100644
--- a/dlls/shell32/shlview_cmenu.c
+++ b/dlls/shell32/shlview_cmenu.c
@@ -1158,7 +1158,7 @@ static HRESULT paste_pidls(ContextMenu *This, ITEMIDLIST **pidls, UINT count)
         if (psfFrom)
         {
             /* get source and destination shellfolder */
-            ISFHelper *psfhlpdst, *psfhlpsrc;
+            ISFHelper *psfhlpdst = NULL, *psfhlpsrc = NULL;
             hr = IShellFolder_QueryInterface(This->parent, &IID_ISFHelper, (void**)&psfhlpdst);
             if (SUCCEEDED(hr))
                 hr = IShellFolder_QueryInterface(psfFrom, &IID_ISFHelper, (void**)&psfhlpsrc);




More information about the wine-cvs mailing list