From 89d2ac438c0544b07d63b68897defe4c1cb46180 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 15 Sep 2009 17:09:53 +0200 Subject: [PATCH] Initialize stack_top when a new thread is created. --- src/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thread.c b/src/thread.c index 3b6134aaeb4..972beb2c462 100644 --- a/src/thread.c +++ b/src/thread.c @@ -147,13 +147,13 @@ do_nothing (Lisp_Object whatever) static void * run_thread (void *state) { - char stack_bottom_variable; + char stack_pos; struct thread_state *self = state; struct thread_state **iter; struct gcpro gcpro1; Lisp_Object buffer; - self->stack_bottom = &stack_bottom_variable; + self->stack_top = self->stack_bottom = &stack_pos; self->m_specpdl_size = 50; self->m_specpdl = xmalloc (self->m_specpdl_size -- 2.39.5