Skip to content

Commit 1d7eeb5

Browse files
Make CI happy
1 parent 2821264 commit 1d7eeb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/faulthandler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ faulthandler_thread(void *unused)
689689
{
690690
PyLockStatus st;
691691
const char* errmsg;
692-
int ok;
692+
int ok = 1;
693693
#if defined(HAVE_PTHREAD_SIGMASK) && !defined(HAVE_BROKEN_PTHREAD_SIGMASK)
694694
sigset_t set;
695695

@@ -721,6 +721,7 @@ faulthandler_thread(void *unused)
721721
PyGILState_STATE gil_state = PyGILState_Ensure();
722722
#endif
723723
errmsg = _Py_DumpTracebackThreads(thread.fd, interp, NULL, 1);
724+
ok = (errmsg == NULL);
724725

725726
#ifdef Py_GIL_DISABLED
726727
_PyEval_StartTheWorld(interp);
@@ -729,7 +730,6 @@ faulthandler_thread(void *unused)
729730
#endif
730731
}
731732

732-
ok = (errmsg == NULL);
733733

734734
if (thread.exit)
735735
_exit(1);

0 commit comments

Comments
 (0)