aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-29 15:22:28 +0400
committerDmitry Antipov2013-08-29 15:22:28 +0400
commit101ed2bbbd42b780675fabb7a990f7613b1fb154 (patch)
tree8415b28300f8da54f2e8fe78ff02e62ae580f1ef /src/alloc.c
parent1f5cf2009af2779ad81412b9d111b37f6e2fd841 (diff)
downloademacs-101ed2bbbd42b780675fabb7a990f7613b1fb154.tar.gz
emacs-101ed2bbbd42b780675fabb7a990f7613b1fb154.zip
* 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,
3479 p->charpos = 0; 3479 p->charpos = 0;
3480 p->next = NULL; 3480 p->next = NULL;
3481 p->insertion_type = 0; 3481 p->insertion_type = 0;
3482 p->need_adjustment = 0;
3482 return val; 3483 return val;
3483} 3484}
3484 3485
@@ -3503,6 +3504,7 @@ build_marker (struct buffer *buf, ptrdiff_t charpos, ptrdiff_t bytepos)
3503 m->charpos = charpos; 3504 m->charpos = charpos;
3504 m->bytepos = bytepos; 3505 m->bytepos = bytepos;
3505 m->insertion_type = 0; 3506 m->insertion_type = 0;
3507 m->need_adjustment = 0;
3506 m->next = BUF_MARKERS (buf); 3508 m->next = BUF_MARKERS (buf);
3507 BUF_MARKERS (buf) = m; 3509 BUF_MARKERS (buf) = m;
3508 return obj; 3510 return obj;