diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-06-02 10:19:40 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-06-02 10:19:40 -0400 |
| commit | 0af64a60e26ce0eb7dfaf65fc692d50f2b6d52b0 (patch) | |
| tree | 3d21a4bac43a89840d79a2ec302bf635e1493780 /src | |
| parent | 9cb9af7c203bca42220b8ebdccd3f01a2e740ead (diff) | |
| download | plymouth-0af64a60e26ce0eb7dfaf65fc692d50f2b6d52b0.tar.gz plymouth-0af64a60e26ce0eb7dfaf65fc692d50f2b6d52b0.tar.xz plymouth-0af64a60e26ce0eb7dfaf65fc692d50f2b6d52b0.zip | |
Respond with password of "" if splash-plugin can't ask for password
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-boot-splash.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ply-boot-splash.c b/src/ply-boot-splash.c index 29902db..4811b1e 100644 --- a/src/ply-boot-splash.c +++ b/src/ply-boot-splash.c @@ -223,9 +223,14 @@ ply_boot_splash_ask_for_password (ply_boot_splash_t *splash, assert (splash != NULL); assert (splash->plugin_interface != NULL); assert (splash->plugin != NULL); - assert (splash->plugin_interface->ask_for_password != NULL); assert (splash->is_shown); + if (splash->plugin_interface->ask_for_password == NULL) + { + answer_handler (answer_data, ""); + return; + } + splash->plugin_interface->ask_for_password (splash->plugin, answer_handler, answer_data); } |
