aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorKarl Heuer1995-04-10 22:37:57 +0000
committerKarl Heuer1995-04-10 22:37:57 +0000
commitaaca43a1fb0f72b36df2ef910a508d68d207c4db (patch)
treed29cf7c4c28ab90e1e1ed3c428fb3d78e521860e /src/keyboard.c
parent3954fff9cffdd54ee237cf7b05b290111a320a8a (diff)
downloademacs-aaca43a1fb0f72b36df2ef910a508d68d207c4db.tar.gz
emacs-aaca43a1fb0f72b36df2ef910a508d68d207c4db.zip
(init_keyboard): Don't malloc a new structure;
initial_kboard should already exist for that.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index cd50ed04055..018cf7a11da 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6614,16 +6614,10 @@ init_keyboard ()
6614 Vlast_event_frame = internal_last_event_frame; 6614 Vlast_event_frame = internal_last_event_frame;
6615#endif 6615#endif
6616 6616
6617 if (!initialized)
6618 {
6619#ifdef MULTI_KBOARD 6617#ifdef MULTI_KBOARD
6620 current_kboard = (KBOARD *)xmalloc (sizeof (KBOARD)); 6618 current_kboard = initial_kboard;
6621 all_kboards = current_kboard;
6622#endif 6619#endif
6623 current_kboard->next_kboard = 0; 6620 wipe_kboard (current_kboard);
6624 }
6625 if (initialized)
6626 wipe_kboard (current_kboard);
6627 init_kboard (current_kboard); 6621 init_kboard (current_kboard);
6628 6622
6629 if (initialized) 6623 if (initialized)