Commit ecf68b1d authored by Lennart Poettering's avatar Lennart Poettering
Browse files

journal: fix bad memory access

parent a536e261
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment