From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 2 Feb 2018 03:58:19 +0000 (-0800) Subject: bpo-32436: Fix compiler warning (GH-5483) (GH-5486) X-Git-Tag: v3.7.0b2~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78767786a87b00925506c32b3b55cf65b56ef3d7;p=python bpo-32436: Fix compiler warning (GH-5483) (GH-5486) (cherry picked from commit 55e0839f2672e029c2b96514028c77c31ffbe41f) Co-authored-by: Yury Selivanov --- 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);