[Python-checkins] r60357 - python/trunk/Modules/_ssl.c

neal.norwitz python-checkins at python.org
Sun Jan 27 18:10:36 CET 2008


Author: neal.norwitz
Date: Sun Jan 27 18:10:35 2008
New Revision: 60357

Modified:
   python/trunk/Modules/_ssl.c
Log:
Initialize variable to prevent warning on some platform/config.

Modified: python/trunk/Modules/_ssl.c
==============================================================================
--- python/trunk/Modules/_ssl.c	(original)
+++ python/trunk/Modules/_ssl.c	Sun Jan 27 18:10:35 2008
@@ -17,7 +17,7 @@
 #ifdef WITH_THREAD
 #include "pythread.h"
 #define PySSL_BEGIN_ALLOW_THREADS { \
-			PyThreadState *_save;  \
+			PyThreadState *_save = NULL;  \
 			if (_ssl_locks_count>0) {_save = PyEval_SaveThread();}
 #define PySSL_BLOCK_THREADS	if (_ssl_locks_count>0){PyEval_RestoreThread(_save)};
 #define PySSL_UNBLOCK_THREADS	if (_ssl_locks_count>0){_save = PyEval_SaveThread()};
@@ -687,7 +687,7 @@
 		}
 
 		p = ext->value->data;
-		if(method->it)
+		if (method->it)
 			names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL,
 								&p,
 								ext->value->length,


More information about the Python-checkins mailing list