aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2014-01-20 08:47:41 -0800
committerPaul Eggert2014-01-20 08:47:41 -0800
commit3c35702fe921254340ad949ce3cab0b668788c90 (patch)
tree9de0bfd95d2dda97dd29d96faf9dfc7bdeb9a4cd /src/buffer.c
parent71f16bdad487018608007b53d26eb65b4cbe6b55 (diff)
downloademacs-3c35702fe921254340ad949ce3cab0b668788c90.tar.gz
emacs-3c35702fe921254340ad949ce3cab0b668788c90.zip
Pacify valgrind by initializing buffer redisplay bit.
Problem reported by Dmitry Antipov in <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. * alloc.c (USE_VALGRIND): Move this to ... * conf_post.h (USE_VALGRIND): ... here. Use booleans. * buffer.c (Fget_buffer_create): Initialize redisplay bit to pacify valgrind.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index c48610d6578..87405174ad2 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -573,7 +573,9 @@ even if it is dead. The return value is never nil. */)
573 BUF_END_UNCHANGED (b) = 0; 573 BUF_END_UNCHANGED (b) = 0;
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 = 0; 576 b->text->inhibit_shrinking = false;
577 if (USE_VALGRIND)
578 b->text->redisplay = false;
577 579
578 b->newline_cache = 0; 580 b->newline_cache = 0;
579 b->width_run_cache = 0; 581 b->width_run_cache = 0;