From: Ray Strode Date: Mon, 2 Jun 2008 14:19:40 +0000 (-0400) Subject: Respond with password of "" if splash-plugin can't ask for password X-Git-Tag: 0.2.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af64a60e26ce0eb7dfaf65fc692d50f2b6d52b0;p=thirdparty%2Fplymouth.git Respond with password of "" if splash-plugin can't ask for password --- diff --git a/src/ply-boot-splash.c b/src/ply-boot-splash.c index 29902dba..4811b1ed 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); }