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

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