Skip to content

Instantly share code, notes, and snippets.

@oliora
Created June 29, 2015 13:58
Show Gist options
  • Save oliora/b19f20c4b374e99be4af to your computer and use it in GitHub Desktop.
Save oliora/b19f20c4b374e99be4af to your computer and use it in GitHub Desktop.
diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx
index 14e2794..01bb31d 100644
--- a/Source/Modules/python.cxx
+++ b/Source/Modules/python.cxx
@@ -2378,7 +2378,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] = {}", maxargs + 1);
Wrapper_add_local(f, "argv", tmp);
if (!fastunpack) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment