summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2009-08-21 20:49:50 +0000
committerdsl <dsl@NetBSD.org>2009-08-21 20:49:50 +0000
commit11bcd8ad6a68612308f2bdf63a6459913fa97491 (patch)
tree77a14fdbda7634b515496ecf042214c5fd6b16fc /lib/libc/stdlib
parent1f39bb7ff594de486696eb774e5fa9eb42612b15 (diff)
The 'table' of character weights is allowed to be NULL.
The SETUP define sorts it out (in the slowest and nastiest possible way!) Broken by rev 1.12 almost 10 years ago!
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/radixsort.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/stdlib/radixsort.c b/lib/libc/stdlib/radixsort.c
index cba15c76aea..a43c1b4e579 100644
--- a/lib/libc/stdlib/radixsort.c
+++ b/lib/libc/stdlib/radixsort.c
@@ -1,4 +1,4 @@
-/* $NetBSD: radixsort.c,v 1.17 2009/02/12 03:34:33 lukem Exp $ */
+/* $NetBSD: radixsort.c,v 1.18 2009/08/21 20:49:50 dsl Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)radixsort.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: radixsort.c,v 1.17 2009/02/12 03:34:33 lukem Exp $");
+__RCSID("$NetBSD: radixsort.c,v 1.18 2009/08/21 20:49:50 dsl Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -110,7 +110,6 @@ radixsort(a, n, tab, endch)
u_char tr0[256];
_DIAGASSERT(a != NULL);
- _DIAGASSERT(tab != NULL);
SETUP;
r_sort_a(a, n, 0, tr, endch);
@@ -128,8 +127,7 @@ sradixsort(a, n, tab, endch)
u_char tr0[256];
_DIAGASSERT(a != NULL);
- _DIAGASSERT(tab != NULL);
- if (a == NULL || tab == NULL) {
+ if (a == NULL) {
errno = EFAULT;
return (-1);
}