aboutsummaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-19 17:32:23 +0000
committerFuwn <[email protected]>2022-06-19 17:32:23 +0000
commit6baed774d66731f988482942887451d00970c046 (patch)
tree770d4c9632d614d7087b662b38cf2966395aab8b /src/context.c
parentdocs(readme): example output (diff)
downloadtatl-6baed774d66731f988482942887451d00970c046.tar.xz
tatl-6baed774d66731f988482942887451d00970c046.zip
fix(context): use calloc for tag, read
Diffstat (limited to 'src/context.c')
-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)));
}