diff options
| author | Paul Eggert | 2011-07-12 18:15:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-12 18:15:33 -0700 |
| commit | 2941c447ebada8126c27065f78c31895f69c738e (patch) | |
| tree | e16fb6b865a14b346c445d99cb9ee9f497645f0a /src/buffer.c | |
| parent | 47ea7f442f7d85f29b7200ada8755e6ebf5c0819 (diff) | |
| download | emacs-2941c447ebada8126c27065f78c31895f69c738e.tar.gz emacs-2941c447ebada8126c27065f78c31895f69c738e.zip | |
* buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
The old code sometimes used this field without initializing it.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1b8b1117893..776888e30ac 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -361,6 +361,7 @@ even if it is dead. The return value is never nil. */) | |||
| 361 | BUF_END_UNCHANGED (b) = 0; | 361 | BUF_END_UNCHANGED (b) = 0; |
| 362 | BUF_BEG_UNCHANGED (b) = 0; | 362 | BUF_BEG_UNCHANGED (b) = 0; |
| 363 | *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */ | 363 | *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */ |
| 364 | b->text->inhibit_shrinking = 0; | ||
| 364 | 365 | ||
| 365 | b->newline_cache = 0; | 366 | b->newline_cache = 0; |
| 366 | b->width_run_cache = 0; | 367 | b->width_run_cache = 0; |