diff options
-rw-r--r-- | tests/test_strlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_strlist.c b/tests/test_strlist.c index 9041fd4..bdc0641 100644 --- a/tests/test_strlist.c +++ b/tests/test_strlist.c @@ -136,7 +136,7 @@ void test_strlist_append_file() { return; } strlist_append_file(list, (char *) tc[i].origin, NULL); - for (size_t z = 0; z < strlist_count(list); z++) { + for (size_t z = 0; z < strlist_count(list) && expected[z] != NULL; z++) { const char *left; const char *right; left = strlist_item(list, z); |