Skip to content

Commit

Permalink
Merge pull request libusual#45 from Medvecrab/static_analyzer_fix
Browse files Browse the repository at this point in the history
Fix errors pointed out by static analyzer
  • Loading branch information
JelteF authored Sep 21, 2023
2 parents 4967d5d + 0004c93 commit 068511e
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 068511e

Please sign in to comment.