From: Lennart Poettering Date: Wed, 4 Jan 2012 02:45:24 +0000 (+0100) Subject: journal: add missing error check X-Git-Tag: v38~80 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b4e5f9201706cbd0c83645175649119e87c2c91c;hp=9c4e3f2624102c0b59cea78aabe4ed1f1d60064e journal: add missing error check --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index fde1a0be8..1833c7534 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -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;