[Python-checkins] Fix GCC warning in Python/hamt.c (GH-7618)

INADA Naoki webhook-mailer at python.org
Fri Jul 6 04:50:43 EDT 2018


https://github.com/python/cpython/commit/d8c3e820b4fcdc45b80ba47f615c95e99e2e931b
commit: d8c3e820b4fcdc45b80ba47f615c95e99e2e931b
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: INADA Naoki <methane at users.noreply.github.com>
date: 2018-07-06T17:50:38+09:00
summary:

Fix GCC warning in Python/hamt.c (GH-7618)

files:
M Python/hamt.c

diff --git a/Python/hamt.c b/Python/hamt.c
index f8bce5961afc..562f777ea0bf 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -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),



More information about the Python-checkins mailing list