]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journald-server.c
journal: do not trigger assertion when journal_file_close() get NULL
[thirdparty/systemd.git] / src / journal / journald-server.c
index 414571191f8729427bec9eb558781be64899a520..b2638c09b355dfcc5623359ed61bdee842d5bfe9 100644 (file)
@@ -2232,11 +2232,8 @@ void server_done(Server *s) {
 
         client_context_flush_all(s);
 
-        if (s->system_journal)
-                (void) journal_file_close(s->system_journal);
-
-        if (s->runtime_journal)
-                (void) journal_file_close(s->runtime_journal);
+        (void) journal_file_close(s->system_journal);
+        (void) journal_file_close(s->runtime_journal);
 
         ordered_hashmap_free_with_destructor(s->user_journals, journal_file_close);