chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2100675
)
journal: add missing error check
author
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Jan 2012 01:15:08 +0000
(
02:15
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Jan 2012 01:15:08 +0000
(
02:15
+0100)
src/journal/sd-journal.c
patch
|
blob
|
history
diff --git
a/src/journal/sd-journal.c
b/src/journal/sd-journal.c
index bb3b0aebc511241ed964a1dca403d788f520b97e..555c35ecc2f1f1365236bbcf653471e35034c6cf 100644
(file)
--- 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) {