[Python-checkins] cpython: Fix uninitialized value in charmap_decode_mapping()

victor.stinner python-checkins at python.org
Tue May 7 01:02:39 CEST 2013


http://hg.python.org/cpython/rev/1c1f60ccf305
changeset:   83660:1c1f60ccf305
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue May 07 01:01:31 2013 +0200
summary:
  Fix uninitialized value in charmap_decode_mapping()

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7459,7 +7459,7 @@
     Py_ssize_t startinpos, endinpos;
     PyObject *errorHandler = NULL, *exc = NULL;
     unsigned char ch;
-    PyObject *key, *item;
+    PyObject *key, *item = NULL;
 
     e = s + size;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list