kernel32: tests/change.c: initialize buffer

Dan Kegel dank at kegel.com
Sun Jun 8 13:16:43 CDT 2008


Even though the value being written doesn't matter to the test,
it's nice to avoid spurious valgrind errors.
Fixes:
 Syscall param write(buf) points to uninitialised byte(s)
    at  (within /lib/ld-2.7.so)
    by  WriteFile (file.c:559)
    by  test_FindFirstChangeNotification (change.c:226)
    by  func_change (change.c:875)
  Uninitialised value was created by a stack allocation
    at  test_FindFirstChangeNotification (change.c:88)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32-change.patch
Type: text/x-diff
Size: 669 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080608/2e5f0ab5/attachment.patch 


More information about the wine-patches mailing list