diff options
author | 2017-05-21 11:54:41 +0000 | |
---|---|---|
committer | 2017-05-21 11:54:41 +0000 | |
commit | 0fd542c2f5f84c88d604d5f37cf604a4a160857a (patch) | |
tree | 15f863fc918ba4b582ea6841c786811fe2e5654d /regress/lib/libc/qsort | |
parent | Rockchip SoCs needs some additional register twiddling when the link speed (diff) | |
download | wireguard-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.c | 2 |
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++) { |