From cf5eb6a110c39b36dd07457180b749f32488bcf5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Jan 2012 03:45:50 +0100 Subject: [PATCH] journal: fix reverse traversing of entries --- src/journal/sd-journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 1833c7534..78a91a3eb 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -488,7 +488,7 @@ static int next_with_matches(sd_journal *j, JournalFile *f, direction_t directio /* Make sure we don't match the entry we are starting * from. */ - found = cp > *offset; + found = cp != *offset; np = 0; LIST_FOREACH(matches, m, j->matches) { -- 2.30.2