chiark / gitweb /
fix a couple of things found with the llvm static analyzer
[elogind.git] / src / shared / logs-show.c
index fedb4532db2505ea5b1bdf385ad312fcf152ded5..4c59ca34cd55d8b132682b52ba8fe9024e130007 100644 (file)
@@ -554,7 +554,7 @@ int show_journal_by_unit(
                 bool follow) {
 
         char *m = NULL;
-        sd_journal *j;
+        sd_journal *j = NULL;
         int r;
         int fd;
         unsigned line = 0;