Just return if nmemb is 0. Avoids a NULL dereference and is
authormillert <millert@openbsd.org>
Sun, 21 Jun 2015 03:20:56 +0000 (03:20 +0000)
committermillert <millert@openbsd.org>
Sun, 21 Jun 2015 03:20:56 +0000 (03:20 +0000)
commitada4c6055c06dd6d2032a67e98d64255b3cf6c6f
treeef161655ebb201990a0c338d1a642c13d7aff578
parent9b4396f8d1059c3ac650f915befeefaf801be361
Just return if nmemb is 0.  Avoids a NULL dereference and is
consistent with the behavior of the other libc sort functions.
OK deraadt@
lib/libc/stdlib/merge.c