aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1995-04-10 22:37:57 +0000
committerKarl Heuer <[email protected]>1995-04-10 22:37:57 +0000
commitaaca43a1fb0f72b36df2ef910a508d68d207c4db (patch)
treed29cf7c4c28ab90e1e1ed3c428fb3d78e521860e /src/keyboard.c
parent3954fff9cffdd54ee237cf7b05b290111a320a8a (diff)
(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 cd50ed0405..018cf7a11d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6614,16 +6614,10 @@ init_keyboard ()
Vlast_event_frame = internal_last_event_frame;
#endif
- if (!initialized)
- {
#ifdef MULTI_KBOARD
- current_kboard = (KBOARD *)xmalloc (sizeof (KBOARD));
- all_kboards = current_kboard;
+ current_kboard = initial_kboard;
#endif
- current_kboard->next_kboard = 0;
- }
- if (initialized)
- wipe_kboard (current_kboard);
+ wipe_kboard (current_kboard);
init_kboard (current_kboard);
if (initialized)