chiark / gitweb /
journal: Fix typo
[elogind.git] / src / journal / sd-journal.c
index c1f69827e98cd1754049cfd71e3906e4d617ee39..7e06a70344ac55eb5e70bfd4e0e311badb605f8f 100644 (file)
@@ -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;
                                 }