From 2d216aedbf44e22d4241cc824eb68703d1ccf795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 1 Apr 2012 22:48:24 +0200 Subject: [PATCH] Fix zeroing of unsupported arguments for complex types. --- retrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {' -- 2.43.0