summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsg <>2017-05-21 11:54:41 +0000
committerjsg <>2017-05-21 11:54:41 +0000
commitcd02cea116f8f7023f94aea2cfd0cee48622e91f (patch)
tree9dc1cfa3710287923ccdc3d57cd6433b38d26577
parent62d15e6c04cafcfafecc360aa1b0f5805601846e (diff)
downloadopenbsd-cd02cea116f8f7023f94aea2cfd0cee48622e91f.tar.gz
openbsd-cd02cea116f8f7023f94aea2cfd0cee48622e91f.tar.bz2
openbsd-cd02cea116f8f7023f94aea2cfd0cee48622e91f.zip
correct a return value test
ok millert@
-rw-r--r--src/regress/lib/libc/qsort/qsort_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libc/qsort/qsort_test.c b/src/regress/lib/libc/qsort/qsort_test.c
index 4de6730864..0596aa4eb4 100644
--- a/src/regress/lib/libc/qsort/qsort_test.c
+++ b/src/regress/lib/libc/qsort/qsort_test.c
@@ -1668,7 +1668,7 @@ run_tests(int n)
1668 x = reallocarray(NULL, n, sizeof(x[0])); 1668 x = reallocarray(NULL, n, sizeof(x[0]));
1669 y = reallocarray(NULL, n, sizeof(y[0])); 1669 y = reallocarray(NULL, n, sizeof(y[0]));
1670 z = reallocarray(NULL, n, sizeof(z[0])); 1670 z = reallocarray(NULL, n, sizeof(z[0]));
1671 if (y == NULL || y == NULL || z == NULL) 1671 if (x == NULL || y == NULL || z == NULL)
1672 err(1, NULL); 1672 err(1, NULL);
1673 1673
1674 for (dist = SAWTOOTH; dist != INVALID; dist++) { 1674 for (dist = SAWTOOTH; dist != INVALID; dist++) {