From: José Fonseca <jose.r.fonseca@gmail.com>
Date: Sun, 1 Apr 2012 20:48:24 +0000 (+0200)
Subject: Fix zeroing of unsupported arguments for complex types.
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=2d216aedbf44e22d4241cc824eb68703d1ccf795;p=apitrace

Fix zeroing of unsupported arguments for complex types.
---

diff --git a/retrace.py b/retrace.py
index 10cd5c6..7592475 100644
--- a/retrace.py
+++ b/retrace.py
@@ -270,7 +270,7 @@ class Retracer:
                 self.extractArg(function, arg, arg_type, lvalue, rvalue)
             except NotImplementedError:
                 success =  False
-                print '    %s = 0; // FIXME' % arg.name
+                print '    memset(&%s, 0, sizeof %s); // FIXME' % (arg.name, arg.name)
 
         if not success:
             print '    if (1) {'