From bab468082863973ca2e015472b75dc1cb4e94733 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Aug 2017 15:03:03 +0530 Subject: [PATCH] ... --- kitty/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/history.c b/kitty/history.c index c46f9bbda..4ee6095ec 100644 --- a/kitty/history.c +++ b/kitty/history.c @@ -33,7 +33,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) { self->buf = PyMem_Calloc(xnum * ynum, sizeof(Cell)); self->continued_map = PyMem_Calloc(ynum, sizeof(bool)); self->line = alloc_line(); - if (self->buf == NULL || self->line == NULL || self->continued_map) { + if (self->buf == NULL || self->line == NULL || self->continued_map == NULL) { PyErr_NoMemory(); PyMem_Free(self->buf); Py_CLEAR(self->line); PyMem_Free(self->continued_map); Py_CLEAR(self);