array: fix search for empty arrays
When the array is empty `cmp` never gets set by the comparison function. Initialize it so we return ENOTFOUND in those cases.
Showing
Please
register
or
sign in
to comment
When the array is empty `cmp` never gets set by the comparison function. Initialize it so we return ENOTFOUND in those cases.