[PATCH] initialize addr

Marcus Meissner marcus at jet.franken.de
Mon Sep 17 10:58:18 CDT 2007


Hi,

gcc 4.3 spotted this as maybe uninitialized and I agree.

Ciao, Marcus
---
 dlls/kernel32/local16.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/local16.c b/dlls/kernel32/local16.c
index 87f11ed..cf4e7d4 100644
--- a/dlls/kernel32/local16.c
+++ b/dlls/kernel32/local16.c
@@ -1960,7 +1960,7 @@ DWORD WINAPI Local32Alloc16( HANDLE heap
     LOCAL32HEADER *header = (LOCAL32HEADER *)heap;
     LPDWORD handle;
     LPBYTE ptr;
-    DWORD addr;
+    DWORD addr = 0;
 
     /* Allocate memory */
     ptr = HeapAlloc( header->heap,
-- 
1.4.3.4



More information about the wine-patches mailing list