File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ static PyXmlSec_ErrorHolder* PyXmlSec_ExchangeLastError(PyXmlSec_ErrorHolder* e)
7676 int r ;
7777
7878 #if PY_MINOR_VERSION >= 7
79- if (PyThread_tss_is_created (& PyXmlSec_LastErrorKey ) ! = 0 ) {
79+ if (PyThread_tss_is_created (& PyXmlSec_LastErrorKey ) = = 0 ) {
8080 #else
81- if (PyXmlSec_LastErrorKey ! = 0 ) {
81+ if (PyXmlSec_LastErrorKey = = 0 ) {
8282 #endif
8383 PYXMLSEC_DEBUG ("WARNING: There is no error key." );
8484 PyXmlSec_ErrorHolderFree (e );
@@ -209,7 +209,7 @@ int PyXmlSec_ExceptionsModule_Init(PyObject* package) {
209209 if (PyModule_AddObject (package , "VerificationError" , PyXmlSec_VerificationError ) < 0 ) goto ON_FAIL ;
210210
211211 #if PY_MINOR_VERSION >= 7
212- if (PyThread_tss_create (& PyXmlSec_LastErrorKey )) {
212+ if (PyThread_tss_create (& PyXmlSec_LastErrorKey ) == 0 ) {
213213 PyXmlSec_InstallErrorCallback ();
214214 }
215215 #else
You can’t perform that action at this time.
0 commit comments