summaryrefslogtreecommitdiffstats
path: root/Python/hamt.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-02-02 03:24:56 (GMT)
committerGitHub <noreply@github.com>2018-02-02 03:24:56 (GMT)
commit55e0839f2672e029c2b96514028c77c31ffbe41f (patch)
tree45b348dcc89ac4e73f21ce8fa641a11bd1abeb02 /Python/hamt.c
parent01a0cb891694cf73b86f799c48d8c78de1b8f74c (diff)
downloadcpython-55e0839f2672e029c2b96514028c77c31ffbe41f.zip
cpython-55e0839f2672e029c2b96514028c77c31ffbe41f.tar.gz
cpython-55e0839f2672e029c2b96514028c77c31ffbe41f.tar.bz2
bpo-32436: Fix compiler warning (#5483)
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 8998dbd..c9acbbc 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);