aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-19 17:32:23 -0700
committerFuwn <[email protected]>2022-06-19 17:32:23 -0700
commitbe722cf0123b6881b356a213df9629b3b425cf9f (patch)
tree770d4c9632d614d7087b662b38cf2966395aab8b
parentdocs(readme): example output (diff)
downloadtatl-be722cf0123b6881b356a213df9629b3b425cf9f.tar.xz
tatl-be722cf0123b6881b356a213df9629b3b425cf9f.zip
fix(context): use calloc for tag, read
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index dabe9ab..4793166 100644
--- a/src/context.c
+++ b/src/context.c
@@ -33,7 +33,7 @@ void tatl_new(struct tatl_context *context) {
context->_names_size = 0;
context->_tests_size = 0;
context->_timer = clock();
- context->_tag = malloc(1 * sizeof(char));
+ context->_tag = calloc(1, sizeof(char));
context->_names = malloc(1 * sizeof(char *));
context->_tests = malloc(1 * sizeof(int (*)(void)));
}