]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't try to close session on_quit if it wasn't ever opened
authorRay Strode <rstrode@redhat.com>
Mon, 9 Jun 2008 20:42:03 +0000 (16:42 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 9 Jun 2008 20:42:03 +0000 (16:42 -0400)
src/main.c

index a95f1bde068eedf9951f8366be29a0386961be8e..3baf7713140f25d51792bbc3879aafb1ad150dd3 100644 (file)
@@ -142,7 +142,8 @@ static void
 on_quit (state_t *state)
 {
   ply_trace ("time to quit, closing boot.log");
-  ply_terminal_session_close_log (state->session);
+  if (state->session != NULL)
+    ply_terminal_session_close_log (state->session);
   ply_trace ("hiding splash");
   if (state->boot_splash != NULL)
     ply_boot_splash_hide (state->boot_splash);