kernel32/tests: initialize a few variables (resend)

Dan Kegel dank at kegel.com
Sun Jun 22 16:25:21 CDT 2008


Initialize a few fields in a struct which weren't always getting set.

Fixes five valgrind warnings like:

 Syscall param write(buf) points to uninitialised byte(s)
   at  (within /lib/ld-2.7.so)
   by  WriteFile (file.c:559)
   by  save_blackbox (debugger.c:72)
   by  doDebugger (debugger.c:184)
   by  func_debugger (debugger.c:403)
   by  run_test (test.h:421)
   by  main (test.h:470)
 Address 0x7f22fdb8 is on thread 1's stack
 Uninitialised value was created by a stack allocation
   at  doDebugger (debugger.c:131)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32-debugger.patch
Type: text/x-diff
Size: 1292 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080622/605250c5/attachment.patch 


More information about the wine-patches mailing list