]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] only set keyboard on splash if available
authorRay Strode <rstrode@redhat.com>
Sat, 28 Nov 2009 05:24:21 +0000 (00:24 -0500)
committerRay Strode <rstrode@redhat.com>
Sat, 28 Nov 2009 05:24:58 +0000 (00:24 -0500)
There may be cases where there is no keyboard set.

src/main.c

index 47b6200471d22aaa29b0c7c4b09362867c7fc9f9..197c8e61068a7d5f80db569374cc58ea219a1542 100644 (file)
@@ -1044,7 +1044,8 @@ add_displays_and_keyboard_to_boot_splash (state_t           *state,
   ply_list_node_t *node;
 
   ply_trace ("setting keyboard on boot splash");
-  ply_boot_splash_set_keyboard (splash, state->keyboard);
+  if (state->keyboard != NULL)
+    ply_boot_splash_set_keyboard (splash, state->keyboard);
 
   node = ply_list_get_first_node (state->pixel_displays);
   while (node != NULL)