Commit aaca43a1 authored by Karl Heuer's avatar Karl Heuer
Browse files

(init_keyboard): Don't malloc a new structure;

initial_kboard should already exist for that.
parent 3954fff9
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment