From: Giuseppe Scrivano Date: Tue, 15 Sep 2009 22:21:10 +0000 (+0200) Subject: Fix a segfault when m_current_buffer is NULL X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fc93f7b5de3d6c5bd4992d1fce5290f442d15e55;p=emacs.git Fix a segfault when m_current_buffer is NULL --- diff --git a/src/thread.c b/src/thread.c index 972beb2c462..506e9d60afa 100644 --- a/src/thread.c +++ b/src/thread.c @@ -55,8 +55,11 @@ mark_one_thread (struct thread_state *thread) mark_backtrace (thread->m_backtrace_list); - XSETBUFFER (tem, thread->m_current_buffer); - mark_object (tem); + if (thread->m_current_buffer) + { + XSETBUFFER (tem, thread->m_current_buffer); + mark_object (tem); + } } static void