]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Respond with password of "" if splash-plugin can't ask for password
authorRay Strode <rstrode@redhat.com>
Mon, 2 Jun 2008 14:19:40 +0000 (10:19 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 2 Jun 2008 14:19:40 +0000 (10:19 -0400)
src/ply-boot-splash.c

index 29902dbac4e39f027bace90c2115481802c0ae30..4811b1edc853d87399cb2af97c3320c4320a1e08 100644 (file)
@@ -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);
 }