[Python-checkins] cpython (merge 3.3 -> default): Issue #18709: GCC 4.6 complains that 'v' may be used uninitialized in

christian.heimes python-checkins at python.org
Thu Sep 5 16:07:01 CEST 2013


http://hg.python.org/cpython/rev/4e93f32176fb
changeset:   85536:4e93f32176fb
parent:      85532:ac27d979078a
parent:      85535:90040e560527
user:        Christian Heimes <christian at cheimes.de>
date:        Thu Sep 05 16:04:50 2013 +0200
summary:
  Issue #18709: GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case

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


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -755,7 +755,7 @@
 
     int i, j;
     PyObject *peer_alt_names = Py_None;
-    PyObject *v, *t;
+    PyObject *v = NULL, *t;
     X509_EXTENSION *ext = NULL;
     GENERAL_NAMES *names = NULL;
     GENERAL_NAME *name;

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


More information about the Python-checkins mailing list