aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-20 13:01:39 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-20 13:01:39 +0200
commita21c91dc23ca0267f4547bc07c872d9ac4937cb4 (patch)
tree6b108d08f415f2ffe3635318cd4b07496f6b2e48 /tests
parentf7101248f706d48b2deaefd337c45a245589ea7d (diff)
downloaddns-a21c91dc23ca0267f4547bc07c872d9ac4937cb4.tar.gz
restructuring
Diffstat (limited to 'tests')
-rw-r--r--tests/zonefile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/zonefile.c b/tests/zonefile.c
index a8004f9..b142f8e 100644
--- a/tests/zonefile.c
+++ b/tests/zonefile.c
@@ -23,8 +23,7 @@ START_TEST (test_zonefile_string_split) {
str = malloc(str_len);
strncpy(str, refstr, str_len);
- for (i=0; i<4; i++)
- parts[i] = NULL;
+ memset(&parts, 0, sizeof(parts));
len = zonefile_string_split(parts, 4, str, ' ');
ck_assert_int_eq(len, 4);