Commit 2941c447 authored by Paul Eggert's avatar Paul Eggert
Browse files

* buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.

The old code sometimes used this field without initializing it.
parent 47ea7f44
2011-07-13 Paul Eggert <eggert@cs.ucla.edu>
* buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
The old code sometimes used this field without initializing it.
* alloc.c (gc_sweep): Don't read past end of array.
In theory, the old code could also have corrupted Emacs internals,
though it'd be very unlikely.
......
......@@ -361,6 +361,7 @@ even if it is dead. The return value is never nil. */)
BUF_END_UNCHANGED (b) = 0;
BUF_BEG_UNCHANGED (b) = 0;
*(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */
b->text->inhibit_shrinking = 0;
b->newline_cache = 0;
b->width_run_cache = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment