]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_keyboard): Don't malloc a new structure;
authorKarl Heuer <kwzh@gnu.org>
Mon, 10 Apr 1995 22:37:57 +0000 (22:37 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 10 Apr 1995 22:37:57 +0000 (22:37 +0000)
initial_kboard should already exist for that.

src/keyboard.c

index cd50ed04055ff05c6aa385fc0fc783614a0634c8..018cf7a11da4d0befafd170950de13cdc82e3bd2 100644 (file)
@@ -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)