diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 17:10:35 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-27 17:10:35 (GMT) |
commit | e9057ff1a91ed83eff47e9a2a658bc2b9c365644 (patch) | |
tree | ad5e63377dbe8212c8d488fc0353c3d3e85dac73 | |
parent | c44af337ce1c0d23c8862fcc1e95d257c593dd70 (diff) | |
download | cpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.zip cpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.tar.gz cpython-e9057ff1a91ed83eff47e9a2a658bc2b9c365644.tar.bz2 |
Initialize variable to prevent warning on some platform/config.
-rw-r--r-- | Modules/_ssl.c | 4 |
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, |