diff options
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 89a3673..9375e07 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -2197,9 +2197,9 @@ instancemethod_new(PyTypeObject* type, PyObject* args, PyObject *kw) { PyObject *func; PyObject *self; - PyObject *classObj; + PyObject *classObj = NULL; - if (!PyArg_UnpackTuple(args, "instancemethod", 3, 3, + if (!PyArg_UnpackTuple(args, "instancemethod", 2, 3, &func, &self, &classObj)) return NULL; if (!PyCallable_Check(func)) { |