[main] Don't watch for keyboard input if no keyboard

In the event should_ignore_show_splash_calls () returns
true, we won't ever have a keyboard set.  This commit
make sure that we don't try to use the keyboard if its
unavailable.
This commit is contained in:
Ray Strode 2010-07-21 00:21:16 -04:00
parent 9311c9d2fd
commit aa3ee475ec

View file

@ -1510,7 +1510,8 @@ start_boot_splash (state_t *state,
return NULL;
}
ply_keyboard_watch_for_input (state->keyboard);
if (state->keyboard != NULL)
ply_keyboard_watch_for_input (state->keyboard);
update_display (state);
return splash;