From: Lennart Poettering Date: Wed, 4 Jan 2012 01:15:08 +0000 (+0100) Subject: journal: add missing error check X-Git-Tag: v38~86 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4b067dc9d2b8836a2250315445686ae83993a9b7 journal: add missing error check --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index bb3b0aebc..555c35ecc 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) {