Module: wine Branch: master Commit: adb4259aa92599bf7bbad8271f1a372027443a46 URL: https://source.winehq.org/git/wine.git/?a=commit;h=adb4259aa92599bf7bbad8271...
Author: Alex Henrie alexhenrie24@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@gmail.com Signed-off-by: Alexandre Julliard julliard@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);