mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 14:48:01 +02:00
Don't crash if the user presses enter when a password isn't being asked for
This commit is contained in:
parent
7e0dee1af1
commit
d469d3fd75
1 changed files with 11 additions and 3 deletions
|
|
@ -441,11 +441,19 @@ void
|
|||
on_enter (ply_boot_splash_plugin_t *plugin,
|
||||
const char *text)
|
||||
{
|
||||
if (plugin->password_answer_handler == NULL)
|
||||
return;
|
||||
|
||||
plugin->password_answer_handler (plugin->password_answer_data,
|
||||
text);
|
||||
plugin->entry->number_of_bullets = 0;
|
||||
entry_free (plugin->entry);
|
||||
plugin->entry = NULL;
|
||||
|
||||
if (plugin->entry != NULL)
|
||||
{
|
||||
plugin->entry->number_of_bullets = 0;
|
||||
entry_free (plugin->entry);
|
||||
plugin->entry = NULL;
|
||||
}
|
||||
|
||||
start_animation (plugin);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue