diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 02:15:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 02:15:08 +0100 |
commit | 4b067dc9d2b8836a2250315445686ae83993a9b7 (patch) | |
tree | b57a3b995f1faa591446855da1c09f1386738938 /src | |
parent | 2100675e9fe0707fae8cee13fbe9316e94ef98f9 (diff) |
journal: add missing error check
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/sd-journal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index bb3b0aebc5..555c35ecc2 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -524,6 +524,9 @@ static int next_with_matches(sd_journal *j, JournalFile *f, direction_t directio * matches are not OK */ r = journal_file_next_entry_for_data(f, c, cp, le64toh(c->entry.items[k].object_offset), direction, &qo, &q); + if (r < 0) + return r; + if (r > 0) { if (direction == DIRECTION_DOWN) { |