array.h
3.04 KB
-
array: fix search for empty arrays · 1a2d8bd3
When the array is empty `cmp` never gets set by the comparison function. Initialize it so we return ENOTFOUND in those cases.
Carlos Martín Nieto committed
When the array is empty `cmp` never gets set by the comparison function. Initialize it so we return ENOTFOUND in those cases.