diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/boolobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index af6150d..f2429fe 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -51,10 +51,10 @@ static PyObject * bool_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { static char *kwlist[] = {"x", 0}; - PyObject *x; + PyObject *x = Py_False; long ok; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:bool", kwlist, &x)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O:bool", kwlist, &x)) return NULL; ok = PyObject_IsTrue(x); if (ok < 0) |