diff Python/pystate.c @ 29842:014cc362aa91 legacy-trunk

Initialize thread_id to 0 in unthreaded build. Fixes #770247.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 13 Jul 2003 10:41:53 +0000
parents fa97293533a9
children 633be43bed17 846b3ee7e106
line wrap: on
line diff
--- a/Python/pystate.c	Sun Jul 13 10:25:14 2003 +0000
+++ b/Python/pystate.c	Sun Jul 13 10:41:53 2003 +0000
@@ -144,7 +144,11 @@
 		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;