changeset 11363:f15dccd23db8

(init_keyboard): Don't malloc a new structure; initial_kboard should already exist for that.
author Karl Heuer <kwzh@gnu.org>
date Mon, 10 Apr 1995 22:37:57 +0000
parents b51e4c4cb0de
children 9c609a5bd245
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Apr 10 21:01:12 1995 +0000
+++ b/src/keyboard.c	Mon Apr 10 22:37:57 1995 +0000
@@ -6614,16 +6614,10 @@
   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)