diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/modsupport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index 5d56241..7deded4 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -45,7 +45,7 @@ initmodule(name, methods) for (ml = methods; ml->ml_name != NULL; ml++) { sprintf(namebuf, "%s.%s", name, ml->ml_name); v = newmethodobject(strdup(namebuf), ml->ml_meth, - (object *)NULL); + (object *)NULL, ml->ml_varargs); /* XXX The strdup'ed memory is never freed */ if (v == NULL || dictinsert(d, ml->ml_name, v) != 0) { fprintf(stderr, "initializing module: %s\n", name); |