[Python-checkins] cpython (2.6): 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:03 CEST 2013


http://hg.python.org/cpython/rev/07ee48ce4513
changeset: 85537:07ee48ce4513
branch: 2.6
parent: 85506:25683ceaf341
user: Christian Heimes <christian at cheimes.de>
date: Thu Sep 05 16:04:35 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
@@ -670,7 +670,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

AltStyle によって変換されたページ (->オリジナル) /