summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-08-29 15:22:28 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-08-29 15:22:28 +0400
commit101ed2bbbd42b780675fabb7a990f7613b1fb154 (patch)
tree8415b28300f8da54f2e8fe78ff02e62ae580f1ef /src/alloc.c
parent1f5cf2009af2779ad81412b9d111b37f6e2fd841 (diff)
downloademacs-101ed2bbbd42b780675fabb7a990f7613b1fb154.tar.gz
* alloc.c (Fmake_marker, build_marker): Zero need_adjustment
field of new marker (for sanity and safety).
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index ebb8ef58991..8417ef4982b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3479,6 +3479,7 @@ DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0,
p->charpos = 0;
p->next = NULL;
p->insertion_type = 0;
+ p->need_adjustment = 0;
return val;
}
@@ -3503,6 +3504,7 @@ build_marker (struct buffer *buf, ptrdiff_t charpos, ptrdiff_t bytepos)
m->charpos = charpos;
m->bytepos = bytepos;
m->insertion_type = 0;
+ m->need_adjustment = 0;
m->next = BUF_MARKERS (buf);
BUF_MARKERS (buf) = m;
return obj;