summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-09 16:42:03 -0400
committerRay Strode <rstrode@redhat.com>2008-06-09 16:42:03 -0400
commit16418b38ea91bd26302297f0fb1bfe68b5ce74c7 (patch)
treed2bc277a0fb475294519896e86f65330bf6dd256
parent6287646e2465df8a365ab913c46ee22fce5cd3c5 (diff)
downloadplymouth-16418b38ea91bd26302297f0fb1bfe68b5ce74c7.tar.gz
plymouth-16418b38ea91bd26302297f0fb1bfe68b5ce74c7.tar.xz
plymouth-16418b38ea91bd26302297f0fb1bfe68b5ce74c7.zip
Don't try to close session on_quit if it wasn't ever opened
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a95f1bd..3baf771 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);