From cd02cea116f8f7023f94aea2cfd0cee48622e91f Mon Sep 17 00:00:00 2001 From: jsg <> Date: Sun, 21 May 2017 11:54:41 +0000 Subject: correct a return value test ok millert@ --- src/regress/lib/libc/qsort/qsort_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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++) { -- cgit v1.2.3-55-g6feb