]> granicus.if.org Git - python/commitdiff
Initialize variable to prevent warning on some platform/config.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 27 Jan 2008 17:10:35 +0000 (17:10 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 27 Jan 2008 17:10:35 +0000 (17:10 +0000)
Modules/_ssl.c

index cb3814be8be13e5dc175162bb07fb02aca06280a..48681042e0063caa02ab3ff119e3ebe6951a8857 100644 (file)
@@ -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,