projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
370cc9a
)
Fix zeroing of unsupported arguments for complex types.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 1 Apr 2012 20:48:24 +0000
(22:48 +0200)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 1 Apr 2012 20:48:24 +0000
(22:48 +0200)
retrace.py
patch
|
blob
|
history
diff --git
a/retrace.py
b/retrace.py
index
10cd5c6
..
7592475
100644
(file)
--- 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) {'