aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index cfd658c4..a0a6c47f 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -602,10 +602,7 @@ main(void)
// Rewind and test reader
fseek(fd, 0, SEEK_SET);
- ReaderTest* rt = (ReaderTest*)malloc(sizeof(ReaderTest));
- rt->n_statements = 0;
- rt->graph = NULL;
-
+ ReaderTest* rt = (ReaderTest*)calloc(1, sizeof(ReaderTest));
SerdReader* reader = serd_reader_new(
SERD_TURTLE, rt, free,
NULL, NULL, test_sink, NULL);