]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Fix crash when hiding message in details splash mode
authori.Dark_Templar <darktemplar@dark-templar-archives.net>
Mon, 13 Sep 2021 18:43:44 +0000 (21:43 +0300)
committerRay Strode <halfline@gmail.com>
Wed, 22 Sep 2021 14:26:27 +0000 (14:26 +0000)
src/main.c

index a5a196a1dbfb4e19390034675ba6a1309a909d61..9134f264fbb3b512223209f8944d86d0439f5506 100644 (file)
@@ -574,7 +574,9 @@ on_hide_message (state_t    *state,
                 if (strcmp (list_message, message) == 0) {
                         free (list_message);
                         ply_list_remove_node (state->messages, node);
-                        ply_boot_splash_hide_message (state->boot_splash, message);
+                        if (state->boot_splash != NULL) {
+                            ply_boot_splash_hide_message (state->boot_splash, message);
+                        }
                 }
                 node = next_node;
         }