From: Giuseppe Scrivano Date: Tue, 15 Sep 2009 15:09:53 +0000 (+0200) Subject: Initialize stack_top when a new thread is created. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=89d2ac438c0544b07d63b68897defe4c1cb46180;p=emacs.git Initialize stack_top when a new thread is created. --- 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