libc: Don't go into infintie loop in qsort if num elements is 0