[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Mon Apr 8 02:08:44 PDT 2013


 src/journal/sd-journal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 23e97f7d9274b90fb0e1664945dc6259fdae6d39
Author: Marius Vollmer <mvollmer at redhat.com>
Date:   Mon Apr 8 11:19:44 2013 +0300

    journal: Fix typo
    
    This would break backwards skipping.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=63250

diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index c1f6982..7e06a70 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -602,7 +602,7 @@ static int next_for_match(
                                         return r;
 
                                 if ((direction == DIRECTION_DOWN ? cp >= after_offset : cp <= after_offset) &&
-                                    (np == 0 || (direction == DIRECTION_DOWN ? cp > np : np < cp))) {
+                                    (np == 0 || (direction == DIRECTION_DOWN ? cp > np : cp < np))) {
                                         np = cp;
                                         continue_looking = true;
                                 }



More information about the systemd-commits mailing list