From: Karl Heuer Date: Mon, 10 Apr 1995 22:37:57 +0000 (+0000) Subject: (init_keyboard): Don't malloc a new structure; X-Git-Tag: emacs-19.34~4495 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aaca43a1fb0f72b36df2ef910a508d68d207c4db;p=emacs.git (init_keyboard): Don't malloc a new structure; initial_kboard should already exist for that. --- 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 () 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)