aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2014-01-20 08:55:28 -0800
committerPaul Eggert2014-01-20 08:55:28 -0800
commit009581fa6558c0ed4f804e7fecdc652ec3532810 (patch)
tree72ee808fb816066bdb59b9de553be74f5dec0da1 /src/buffer.c
parent3c35702fe921254340ad949ce3cab0b668788c90 (diff)
downloademacs-009581fa6558c0ed4f804e7fecdc652ec3532810.tar.gz
emacs-009581fa6558c0ed4f804e7fecdc652ec3532810.zip
Apply previous change even if valgrind is not in use, since it avoids undefined behavior. This is simpler.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 87405174ad2..8f557634b2a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -574,8 +574,7 @@ even if it is dead. The return value is never nil. */)
574 BUF_BEG_UNCHANGED (b) = 0; 574 BUF_BEG_UNCHANGED (b) = 0;
575 *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */ 575 *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */
576 b->text->inhibit_shrinking = false; 576 b->text->inhibit_shrinking = false;
577 if (USE_VALGRIND) 577 b->text->redisplay = false;
578 b->text->redisplay = false;
579 578
580 b->newline_cache = 0; 579 b->newline_cache = 0;
581 b->width_run_cache = 0; 580 b->width_run_cache = 0;