Blame SOURCES/gnome-logs-3.28.5-timestamp-crash-fix.patch

5c2546
From 7d0062a4ab36d457b74fe17b8d494570d4a0334b Mon Sep 17 00:00:00 2001
5c2546
From: David King <davidk@gnome.org>
5c2546
Date: Mon, 11 Feb 2019 08:46:08 +0000
5c2546
Subject: [PATCH] Avoid segfault when updating latest timestamp
5c2546
5c2546
https://bugzilla.redhat.com/show_bug.cgi?id=1652642
5c2546
---
5c2546
 src/gl-journal.c | 3 +--
5c2546
 1 file changed, 1 insertion(+), 2 deletions(-)
5c2546
5c2546
diff --git a/src/gl-journal.c b/src/gl-journal.c
5c2546
index 4edb1a6..26815cb 100644
5c2546
--- a/src/gl-journal.c
5c2546
+++ b/src/gl-journal.c
5c2546
@@ -94,8 +94,7 @@ gl_journal_update_latest_timestamp (GlJournal *journal)
5c2546
         g_warning ("Error retrieving the sender timestamps: %s",
5c2546
                    g_strerror (-r));
5c2546
     }
5c2546
-
5c2546
-    if (realtime > boot_id->realtime_last)
5c2546
+    else if (realtime > boot_id->realtime_last)
5c2546
     {
5c2546
         boot_id->realtime_last = realtime;
5c2546
     }
5c2546
-- 
5c2546
2.20.1
5c2546