]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Don't watch for keyboard input if no keyboard
authorRay Strode <rstrode@redhat.com>
Wed, 21 Jul 2010 04:21:16 +0000 (00:21 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 21 Jul 2010 04:21:16 +0000 (00:21 -0400)
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.

src/main.c

index e1dfacd657feba2717294d9387a0022dd2f8e0f7..7ab763bcd225fa7b18ae852d13810aa3a62d66b3 100644 (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;