emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r105150: * buffer.c (Fget_buffer_crea


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105150: * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
Date: Tue, 12 Jul 2011 18:15:33 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105150
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Tue 2011-07-12 18:15:33 -0700
message:
  * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
  
  The old code sometimes used this field without initializing it.
modified:
  src/ChangeLog
  src/buffer.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-07-13 01:04:29 +0000
+++ b/src/ChangeLog     2011-07-13 01:15:33 +0000
@@ -1,5 +1,8 @@
 2011-07-13  Paul Eggert  <address@hidden>
 
+       * 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.

=== modified file 'src/buffer.c'
--- a/src/buffer.c      2011-07-10 08:20:10 +0000
+++ b/src/buffer.c      2011-07-13 01:15:33 +0000
@@ -361,6 +361,7 @@
   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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]