Sven Baars : setupapi: Fix an uninitialized variable warning (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Aug 19 15:35:11 CDT 2019


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

Author: Sven Baars <sven.wine at gmail.com>
Date:   Sun Aug 18 00:09:05 2019 +0200

setupapi: Fix an uninitialized variable warning (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/setupapi/queue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index e049bbe..e9b48ed 100644
--- a/dlls/setupapi/queue.c
+++ b/dlls/setupapi/queue.c
@@ -196,6 +196,7 @@ UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification,
     switch(notification)
     {
     case SPFILENOTIFY_COPYERROR:
+        buffer[0] = 0;
         param2 = (UINT_PTR)buffer;
         /* fall through */
     case SPFILENOTIFY_STARTDELETE:




More information about the wine-cvs mailing list