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

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