Clang found an uninitialized pointer.

This commit is contained in:
Olaf Seibert
2021-01-23 22:06:12 +01:00
parent c53aec71c3
commit 706e4e9758
2 changed files with 5 additions and 2 deletions

View File

@@ -718,7 +718,7 @@ EX_TREE *evaluate(
EX_TREE *new_ex_tree(
void)
{
EX_TREE *tr = memcheck(malloc(sizeof(EX_TREE)));
EX_TREE *tr = memcheck(calloc(1, sizeof(EX_TREE)));
return tr;
}