summaryrefslogtreecommitdiffstats
path: root/regress/lib/libc/qsort
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2017-05-21 11:54:41 +0000
committerjsg <jsg@openbsd.org>2017-05-21 11:54:41 +0000
commit0fd542c2f5f84c88d604d5f37cf604a4a160857a (patch)
tree15f863fc918ba4b582ea6841c786811fe2e5654d /regress/lib/libc/qsort
parentRockchip SoCs needs some additional register twiddling when the link speed (diff)
downloadwireguard-openbsd-0fd542c2f5f84c88d604d5f37cf604a4a160857a.tar.xz
wireguard-openbsd-0fd542c2f5f84c88d604d5f37cf604a4a160857a.zip
correct a return value test
ok millert@
Diffstat (limited to 'regress/lib/libc/qsort')
-rw-r--r--regress/lib/libc/qsort/qsort_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/lib/libc/qsort/qsort_test.c b/regress/lib/libc/qsort/qsort_test.c
index 4de6730864e..0596aa4eb43 100644
--- a/regress/lib/libc/qsort/qsort_test.c
+++ b/regress/lib/libc/qsort/qsort_test.c
@@ -1668,7 +1668,7 @@ run_tests(int n)
x = reallocarray(NULL, n, sizeof(x[0]));
y = reallocarray(NULL, n, sizeof(y[0]));
z = reallocarray(NULL, n, sizeof(z[0]));
- if (y == NULL || y == NULL || z == NULL)
+ if (x == NULL || y == NULL || z == NULL)
err(1, NULL);
for (dist = SAWTOOTH; dist != INVALID; dist++) {