summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/simple_access-tests.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c
index 5c74eb85f..3e8b310ee 100644
--- a/src/tests/simple_access-tests.c
+++ b/src/tests/simple_access-tests.c
@@ -536,9 +536,7 @@ static void check_access_list(char **list, const char **values)
{
int i;
- if (list == NULL) {
- fail_if(values != NULL, "List is empty, but it shouldn't be");
- }
+ fail_if(values == NULL, "List is empty, but it shouldn't be");
for (i = 0; list[i] != NULL; i++) {
fail_if(values[i] == NULL, "List contains too many entries");