From ce1e5cc0ee32d7b66b311b61bf38d9eefc522e7c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Jan 2021 14:45:36 +0100 Subject: Allow all free functions to be called on null --- test/strindex_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/strindex_test.c') diff --git a/test/strindex_test.c b/test/strindex_test.c index 42d3c66..3cdfb25 100644 --- a/test/strindex_test.c +++ b/test/strindex_test.c @@ -37,6 +37,8 @@ test_fail(const char* fmt, ...) int main(void) { + zix_strindex_free(NULL); + const char* str = "BANANA"; const size_t str_len = strlen(str); ZixStrindex* strindex = zix_strindex_new(str); -- cgit v1.2.1