summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-01-27 17:10:35 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-01-27 17:10:35 (GMT)
commite9057ff1a91ed83eff47e9a2a658bc2b9c365644 (patch)
treead5e63377dbe8212c8d488fc0353c3d3e85dac73 /Modules
parentc44af337ce1c0d23c8862fcc1e95d257c593dd70 (diff)
downloadcpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.zip
cpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.tar.gz
cpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.tar.bz2
Initialize variable to prevent warning on some platform/config.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index cb3814b..4868104 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -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 @@ _get_peer_alt_names (X509 *certificate) {
}
p = ext->value->data;
- if(method->it)
+ if (method->it)
names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL,
&p,
ext->value->length,