array.h
3.04 KB
-
array: fix search for empty arrays · adfece0d
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.