1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-13 13:17:43 +03:00

journal: add missing error check

This commit is contained in:
Lennart Poettering 2012-01-04 02:15:08 +01:00
parent 2100675e9f
commit 4b067dc9d2

View File

@ -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) {