chiark / gitweb /
shared: add process-util.[ch]
[elogind.git] / src / shared / logs-show.c
index 5a3ab3da3ee505f00f2bd235de278f82cbe1a21c..7a7a1e934f2ba9135f22f255153e878037d20ccd 100644 (file)
@@ -31,6 +31,8 @@
 #include "utf8.h"
 #include "hashmap.h"
 #include "journal-internal.h"
+#include "formats-util.h"
+#include "process-util.h"
 
 /* up to three lines (each up to 100 characters),
    or 300 characters, whichever is less */
@@ -990,7 +992,7 @@ static int show_journal(FILE *f,
 
                 if (warn_cutoff && line < how_many && not_before > 0) {
                         sd_id128_t boot_id;
-                        usec_t cutoff;
+                        usec_t cutoff = 0;
 
                         /* Check whether the cutoff line is too early */