libc - use a valid pointer for malloc(0).
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Jul 2009 20:36:26 +0000 (13:36 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Jul 2009 20:36:26 +0000 (13:36 -0700)
commitaef002e3ce1339ba6e0040b6a79d28e543497427
tree491e9b8907b3be82c8dfbe881e513074511db728
parent99ab4213e64442a141349931693c028515861cf7
libc - use a valid pointer for malloc(0).

This fixes an issue with qsort()ing 0 elements.

Reported-by: smtms
lib/libc/stdlib/nmalloc.c