Avoid gcc uninitialized variable warnings in Python wrappers.

Just initialize the local array with zeroes.

Closes #453.
This commit is contained in:
xantares 2015-07-25 16:25:42 +02:00 committed by Vadim Zeitlin
commit 812f789db6

View file

@ -2385,7 +2385,7 @@ public:
Printv(f->def, linkage, builtin_ctor ? "int " : "PyObject *", wname, "(PyObject *self, PyObject *args) {", NIL);
Wrapper_add_local(f, "argc", "int argc");
Printf(tmp, "PyObject *argv[%d]", maxargs + 1);
Printf(tmp, "PyObject *argv[%d] = {0}", maxargs + 1);
Wrapper_add_local(f, "argv", tmp);
if (!fastunpack) {