Kaydet (Commit) f9ce67d6 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Initialize thread_id to 0 in unthreaded build. Fixes #770247.

üst 61bfb736
......@@ -144,7 +144,11 @@ PyThreadState_New(PyInterpreterState *interp)
tstate->tick_counter = 0;
tstate->gilstate_counter = 0;
tstate->async_exc = NULL;
#ifdef WITH_THREAD
tstate->thread_id = PyThread_get_thread_ident();
#else
tstate->thread_id = 0;
#endif
tstate->dict = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment