chiark / gitweb /
fix a couple of things found with the llvm static analyzer
[elogind.git] / src / shared / logs-show.c
index fedb453..4c59ca3 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;