chiark / gitweb /
shared: add random-util.[ch]
[elogind.git] / src / shared / logs-show.c
index 5a3ab3da3ee505f00f2bd235de278f82cbe1a21c..e179b8a7b4e20ddbca46bba2672b8c53c16a3907 100644 (file)
@@ -31,6 +31,7 @@
 #include "utf8.h"
 #include "hashmap.h"
 #include "journal-internal.h"
+#include "formats-util.h"
 
 /* up to three lines (each up to 100 characters),
    or 300 characters, whichever is less */
@@ -990,7 +991,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 */