From: Ray Strode Date: Mon, 9 Jun 2008 20:42:03 +0000 (-0400) Subject: Don't try to close session on_quit if it wasn't ever opened X-Git-Tag: 0.3.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16418b38ea91bd26302297f0fb1bfe68b5ce74c7;p=thirdparty%2Fplymouth.git Don't try to close session on_quit if it wasn't ever opened --- diff --git a/src/main.c b/src/main.c index a95f1bde..3baf7713 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);