]> err.no Git - systemd/commitdiff
journal: add missing error check
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Jan 2012 02:45:24 +0000 (03:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Jan 2012 02:45:24 +0000 (03:45 +0100)
src/journal/sd-journal.c

index fde1a0be881bd9694fd2842cf33a9f402b48b5c6..1833c75340311fc217d789192041b818ed825af3 100644 (file)
@@ -372,6 +372,9 @@ static int find_location(sd_journal *j, JournalFile *f, direction_t direction, O
                         else
                                 r = journal_file_next_entry_for_data(f, NULL, 0, dp, direction, &c, &cp);
 
+                        if (r < 0)
+                                return r;
+
                         if (!term_match) {
                                 term_match = m;