From c06022966f58b7130e0a8b7150d1955865c84dc8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 16 Dec 1991 13:07:24 +0000 Subject: Add "varargs" attribute. --- Python/modsupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/modsupport.c') diff --git a/Python/modsupport.c b/Python/modsupport.c index 5d56241e27..7deded44b7 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); -- cgit v1.2.1