oleaut32: tests/vartype.c: use VariantInit, not VariantClear, to initialize new variants

Dan Kegel dank at kegel.com
Tue Jun 3 08:49:35 CDT 2008


Found with Valgrind.  Fixes

 Conditional jump or move depends on uninitialised value(s)
    at VariantClear (variant.c:545)
    by test_NullByRef (vartype.c:5795)
  Uninitialised value was created by a stack allocation
    at test_NullByRef (vartype.c:5791)

and

 Conditional jump or move depends on uninitialised value(s)
    at VariantClear (variant.c:623)
    by test_ChangeType_keep_dst (vartype.c:5830)
  Uninitialised value was created by a stack allocation
    at test_ChangeType_keep_dst (vartype.c:5822)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vartype.patch
Type: text/x-diff
Size: 746 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080603/13b2d48d/attachment.patch 


More information about the wine-patches mailing list