]> granicus.if.org Git - python/commitdiff
Fix GCC warning in Python/hamt.c (GH-7618)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Jul 2018 09:43:05 +0000 (02:43 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Jul 2018 09:43:05 +0000 (02:43 -0700)
(cherry picked from commit d8c3e820b4fcdc45b80ba47f615c95e99e2e931b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Python/hamt.c

index f8bce5961afc61f87bbc33f715d0ab8c09852d30..562f777ea0bf86837c5d240f05e9a30cda91994e 100644 (file)
@@ -2348,7 +2348,7 @@ _PyHamt_Without(PyHamtObject *o, PyObject *key)
         return NULL;
     }
 
-    PyHamtNode *new_root;
+    PyHamtNode *new_root = NULL;
 
     hamt_without_t res = hamt_node_without(
         (PyHamtNode *)(o->h_root),