summaryrefslogtreecommitdiff
path: root/Python/hamt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/hamt.c')
-rw-r--r--Python/hamt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/hamt.c b/Python/hamt.c
index 8998dbd76d..c9acbbcc5a 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -2358,6 +2358,8 @@ _PyHamt_Without(PyHamtObject *o, PyObject *key)
Py_INCREF(o);
return o;
case W_NEWNODE: {
+ assert(new_root != NULL);
+
PyHamtObject *new_o = hamt_alloc();
if (new_o == NULL) {
Py_DECREF(new_root);