diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-04 03:45:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-04 03:45:24 +0100 |
commit | b4e5f9201706cbd0c83645175649119e87c2c91c (patch) | |
tree | ad55952b3103cfd5a3375b31ab6218847f56cc66 /src/journal/sd-journal.c | |
parent | journal: don't mind too much if we can't find a monotonic timestamp (diff) | |
download | systemd-b4e5f9201706cbd0c83645175649119e87c2c91c.tar.xz systemd-b4e5f9201706cbd0c83645175649119e87c2c91c.zip |
journal: add missing error check
Diffstat (limited to 'src/journal/sd-journal.c')
-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 fde1a0be88..1833c75340 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; |