From 3856933043f78bc30a83cfb019ecebb10bab114b Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 17 Sep 2009 01:04:50 +0200 Subject: [PATCH] Initialize a new buffer's owner to nil. --- src/buffer.c | 2 ++ src/thread.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index feacbfcc38a..b99025409a2 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -420,6 +420,7 @@ even if it is dead. The return value is never nil. */) b->mark = Fmake_marker (); BUF_MARKERS (b) = NULL; b->name = name; + b->owner = Qnil; /* Put this in the alist of all live buffers. */ XSETBUFFER (buffer, b); @@ -601,6 +602,7 @@ CLONE nil means the indirect buffer's state is reset to default values. */) b->mark = Fmake_marker (); b->name = name; + b->owner = Qnil; /* The multibyte status belongs to the base buffer. */ b->enable_multibyte_characters = b->base_buffer->enable_multibyte_characters; diff --git a/src/thread.c b/src/thread.c index 77fa8ba9f14..36f075dc646 100644 --- a/src/thread.c +++ b/src/thread.c @@ -188,7 +188,7 @@ run_thread (void *state) xfree (self->m_specpdl); pthread_mutex_unlock (&global_lock); - + return NULL; } -- 2.39.5