core: fix checking for busy lines
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 2 Mar 2017 15:59:27 +0000 (16:59 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 2 Mar 2017 15:59:27 +0000 (16:59 +0100)
commitfb1f09d9e4ddc2992a357af56c861e77c1384e3c
tree0eabfffb04da3fd9404e81603443d6b028c918db
parent1264747fc886f26662d40d6573d502004f1eedd1
core: fix checking for busy lines

If we have a bulk object containing only a single line passed to
verify_line_bulk(), we end up not checking if the line was previously
requested.

Fix it by starting the iteration at offset 0 instead of 1 and skipping
the line owner check for i == 0.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c