summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-11-28 00:24:21 -0500
committerRay Strode <rstrode@redhat.com>2009-11-28 00:24:58 -0500
commit8bb69cd87586af3eb5bfb2b7b56288b031823158 (patch)
tree27c1d538be29b3ce565b1b7360ee8890f3d17eb0
parent1fa4f91a6171fc0585734a766505dbbdd064e175 (diff)
[main] only set keyboard on splash if available
There may be cases where there is no keyboard set.
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 47b62004..197c8e61 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)