aboutsummaryrefslogtreecommitdiff
path: root/tests/zonefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zonefile.c')
-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);