d3dx8/tests: initialize matrix before testing its value

Dan Kegel dank at kegel.com
Tue Jun 10 08:39:46 CDT 2008


The code was baldly testing the value of an uninitialized
variable, and failing if its value was unexpected!
Sheesh.

Fixes valgrind warning:
 Conditional jump or move depends on uninitialised value(s)
    at  D3DXMatrixIsIdentity (d3dx8math.inl:1195)
    by  D3DXMatrixTest (math.c:236)
    by  func_math (math.c:1301)
 Uninitialised value was created by a stack allocation
    at  D3DXMatrixTest (math.c:163)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d3dx8-math.patch
Type: text/x-diff
Size: 461 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080610/e7704f1a/attachment.patch 


More information about the wine-patches mailing list