]> git.eshelyaron.com Git - emacs.git/commitdiff
Initialize a new buffer's owner to nil.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 16 Sep 2009 23:04:50 +0000 (01:04 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 16 Sep 2009 23:04:50 +0000 (01:04 +0200)
src/buffer.c
src/thread.c

index feacbfcc38a96c70da429fb445e4605e83e819a5..b99025409a26779a607cb55ad3b2206758056895 100644 (file)
@@ -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;
index 77fa8ba9f142548753cbb800d952732fe601a9ea..36f075dc6461b1d92feb3327cb091985a334b8a1 100644 (file)
@@ -188,7 +188,7 @@ run_thread (void *state)
   xfree (self->m_specpdl);
 
   pthread_mutex_unlock (&global_lock);
-  
+
   return NULL;
 }