From: Ray Strode Date: Wed, 21 Jul 2010 04:21:16 +0000 (-0400) Subject: [main] Don't watch for keyboard input if no keyboard X-Git-Tag: 0.8.4~181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa3ee475ec4d9e85695ddf2c0c417646e9ced14f;p=thirdparty%2Fplymouth.git [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. --- diff --git a/src/main.c b/src/main.c index e1dfacd6..7ab763bc 100644 --- a/src/main.c +++ b/src/main.c @@ -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;