Skip to content

Commit

Permalink
conf: check if node value is Null
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb authored and victorjulien committed Sep 15, 2023
1 parent 252e8db commit 72ee505
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ int ConfGetChildValue(const ConfNode *base, const char *name, const char **vptr)
return 0;
}
else {
if (node->val == NULL)
return 0;
*vptr = node->val;
return 1;
}
Expand Down

0 comments on commit 72ee505

Please sign in to comment.