commit e7e2992edce8e2a58083ccb181e7570bc03167a3
parent 3b5298d35592380f66ec01247f222f01f6176833
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Sat, 1 Aug 2020 15:19:38 +0200
Fix clang static analyzer warnings
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parse.c b/src/parse.c
@@ -2629,7 +2629,7 @@ chunk_t *extract_chunks(char *s)
chunk_t *make_chunk(void)
{
- chunk_t *c = malloc(sizeof(chunk_t));
+ chunk_t *c = calloc(1, sizeof(chunk_t));
c->sequence = false;
c->advance = NULL;
c->next = NULL;