]> granicus.if.org Git - python/commitdiff
Fix uninitialized value in charmap_decode_mapping()
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 6 May 2013 23:01:31 +0000 (01:01 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 6 May 2013 23:01:31 +0000 (01:01 +0200)
Objects/unicodeobject.c

index 795c18f25b7c85d7afd6ba8bae6841e073789b4b..c5e50eb68bae3dc96a97c02485f1857ad82e2c3b 100644 (file)
@@ -7459,7 +7459,7 @@ charmap_decode_mapping(const char *s,
     Py_ssize_t startinpos, endinpos;
     PyObject *errorHandler = NULL, *exc = NULL;
     unsigned char ch;
-    PyObject *key, *item;
+    PyObject *key, *item = NULL;
 
     e = s + size;