Mark a freshly-allocated node of type N_ERROR rather than N_FREE.

This commit is contained in:
Dianne Skoll
2024-09-16 14:41:30 -04:00
parent a38fd95a90
commit e032f3315d

View File

@@ -231,7 +231,7 @@ alloc_expr_node(int *r)
if (ExprNodesUsed > ExprNodesHighWater) ExprNodesHighWater = ExprNodesUsed;
node = expr_node_free_list;
expr_node_free_list = node->child;
node->type = N_FREE;
node->type = N_ERROR;
node->child = NULL;
node->sibling = NULL;
node->num_kids = 0;