Skip to content

Commit

Permalink
Fix errors pointed out by static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Tselebrovskiy committed Sep 1, 2023
1 parent 4967d5d commit 0004c93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usual/cbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ void *cbtree_lookup(struct CBTree *tree, const void *key, size_t klen)
static struct Node *new_node(struct CBTree *tree)
{
struct Node *node = cx_alloc(tree->cx, sizeof(*node));
if (!node)
return NULL;
memset(node, 0, sizeof(*node));
return node;
}
Expand Down

0 comments on commit 0004c93

Please sign in to comment.