From: Neal Norwitz Date: Sun, 27 Jan 2008 17:10:35 +0000 (+0000) Subject: Initialize variable to prevent warning on some platform/config. X-Git-Tag: v2.6a1~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9057ff1a91ed83eff47e9a2a658bc2b9c365644;p=python Initialize variable to prevent warning on some platform/config. --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index cb3814be8b..48681042e0 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,