mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
yml: post-process: root's node may be NULL (empty configuration)
This commit is contained in:
parent
aba597d5cc
commit
6622616ec7
1 changed files with 2 additions and 1 deletions
3
yml.c
3
yml.c
|
@ -182,7 +182,8 @@ post_process(struct yml_node *node)
|
|||
{
|
||||
switch (node->type) {
|
||||
case ROOT:
|
||||
post_process(node->root.root);
|
||||
if (node->root.root != NULL)
|
||||
post_process(node->root.root);
|
||||
break;
|
||||
|
||||
case SCALAR:
|
||||
|
|
Loading…
Add table
Reference in a new issue