summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/alloc.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a2a58487672..4bdb6de0689 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
2013-08-29 Dmitry Antipov <dmantipov@yandex.ru>
+ * alloc.c (Fmake_marker, build_marker): Zero need_adjustment
+ field of new marker (for sanity and safety).
+
+2013-08-29 Dmitry Antipov <dmantipov@yandex.ru>
+
* xterm.c (x_clear_area): Lost 7th arg because it is always False.
(x_after_update_window_line, x_scroll_bar_create):
(x_scroll_bar_set_handle, XTset_vertical_scroll_bar):
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;