diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 781cab721..df7fb3445 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -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) {