]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't leave inhibit_buffer_hooks uninitialized
authorBasil L. Contovounesios <contovob@tcd.ie>
Sat, 6 Apr 2019 01:41:16 +0000 (02:41 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sat, 6 Apr 2019 13:35:04 +0000 (14:35 +0100)
* src/buffer.c (Fget_buffer_create): Explicitly initialize
inhibit_buffer_hooks. (bug#34847)

src/buffer.c

index c0f7521c9e15b9807a10da2b0cba85b71925ec68..c5d8ee2629109a3c427f1f30d36e0650e1dc4387 100644 (file)
@@ -588,6 +588,8 @@ even if it is dead.  The return value is never nil.  */)
       && strncmp (SSDATA (name), SSDATA (Vcode_conversion_workbuf_name),
                  SBYTES (Vcode_conversion_workbuf_name)) == 0)
     b->inhibit_buffer_hooks = true;
+  else
+    b->inhibit_buffer_hooks = false;
 
   bset_undo_list (b, SREF (name, 0) != ' ' ? Qnil : Qt);