Don't leave inhibit_buffer_hooks uninitialized

* src/buffer.c (Fget_buffer_create): Explicitly initialize
inhibit_buffer_hooks. (bug#34847)
This commit is contained in:
Basil L. Contovounesios 2019-04-06 02:41:16 +01:00
parent 47aae7cfe1
commit 7dc0a06959

View 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);