chiark / gitweb /
journal: fix typo
[elogind.git] / src / journal / sd-journal.c
index 4095830901b30359fcd2e5218d1a96aa7220c8ca..8fc8ec58855f9248cfe9811216f2b36697a576d0 100644 (file)
@@ -437,7 +437,7 @@ static int find_location(sd_journal *j, JournalFile *f, direction_t direction, O
                                             (direction == DIRECTION_DOWN && cp < tp) ||
                                             (direction == DIRECTION_UP && cp > tp)) {
                                                 to = c;
-                                                tp = tp;
+                                                tp = cp;
                                         }
 
                                 }