aboutsummaryrefslogtreecommitdiffstats
path: root/src/macros.c
diff options
context:
space:
mode:
authorAndreas Schwab2014-07-29 10:08:04 +0200
committerAndreas Schwab2014-07-29 10:08:04 +0200
commitaac90c4a9c760ca12395783c7c4120427ba32a96 (patch)
tree9c7ba2aede41feb66bc7e080faeae50bcfe57e10 /src/macros.c
parent17ee955294f501c5da91d74baa8a8e38210d77eb (diff)
downloademacs-aac90c4a9c760ca12395783c7c4120427ba32a96.tar.gz
emacs-aac90c4a9c760ca12395783c7c4120427ba32a96.zip
Fixes: debbugs:18140
* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and kbd_macro_end together with kbd_macro_buffer.
Diffstat (limited to 'src/macros.c')
-rw-r--r--src/macros.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.c b/src/macros.c
index d0cf3c2c58d..5bed625ff41 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -65,6 +65,8 @@ macro before appending to it. */)
65 { 65 {
66 current_kboard->kbd_macro_buffer = xmalloc (30 * word_size); 66 current_kboard->kbd_macro_buffer = xmalloc (30 * word_size);
67 current_kboard->kbd_macro_bufsize = 30; 67 current_kboard->kbd_macro_bufsize = 30;
68 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer;
69 current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer;
68 } 70 }
69 update_mode_lines = 19; 71 update_mode_lines = 19;
70 if (NILP (append)) 72 if (NILP (append))