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:
a536e26
)
journal: fix bad memory access
author
Lennart Poettering
<lennart@poettering.net>
Thu, 12 Jul 2012 15:36:24 +0000
(17:36 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 12 Jul 2012 22:32:32 +0000
(
00:32
+0200)
src/journal/journal-file.c
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index c468b226972d1ebffe02177584b384aaea642a6c..83f603ac821b0af1ac521a6b8b992bd754ffe362 100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-1300,7
+1300,7
@@
static int generic_array_bisect_plus_one(JournalFile *f,
r = generic_array_bisect(f, first, n-1, needle, test_object, direction, ret, offset, idx);
- if (r > 0)
+ if (r > 0
&& idx
)
(*idx) ++;
return r;