From: Basil L. Contovounesios Date: Sat, 6 Apr 2019 01:41:16 +0000 (+0100) Subject: Don't leave inhibit_buffer_hooks uninitialized X-Git-Tag: emacs-27.0.90~3261^2~93 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7dc0a06959ab5ebda2f2cc4ed31a1b66395e2cf9;p=emacs.git Don't leave inhibit_buffer_hooks uninitialized * src/buffer.c (Fget_buffer_create): Explicitly initialize inhibit_buffer_hooks. (bug#34847) --- diff --git a/src/buffer.c b/src/buffer.c index c0f7521c9e1..c5d8ee26291 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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);