cabinet: fully initialize structs in FCICreate() and FCIAddFile()
Dan Kegel
dank at kegel.com
Wed Oct 31 01:23:06 CDT 2007
The code seems to have missed initializing a field
in two structs, which causes warnings in Valgrind.
Rather than hunt it down precisely, I applied
the old "memset the struct to zero when allocating"
meme, which in some circles is considered the "right"
way to avoid this kind of problem. (I halfway expect
Alexandre to say "don't be so lazy", but it's worth a try.)
--
Wine for Windows ISVs: http://kegel.com/wine/isv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cabinet.patch
Type: text/x-patch
Size: 1644 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071030/51cc057d/attachment.bin
More information about the wine-patches
mailing list