diff options
| author | Fuwn <[email protected]> | 2022-06-19 17:32:23 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-19 17:32:23 +0000 |
| commit | 6baed774d66731f988482942887451d00970c046 (patch) | |
| tree | 770d4c9632d614d7087b662b38cf2966395aab8b /src/context.c | |
| parent | docs(readme): example output (diff) | |
| download | tatl-6baed774d66731f988482942887451d00970c046.tar.xz tatl-6baed774d66731f988482942887451d00970c046.zip | |
fix(context): use calloc for tag, read
Diffstat (limited to 'src/context.c')
| -rw-r--r-- | src/context.c | 2 |
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))); } |