yml: post-process: root's node may be NULL (empty configuration)

This commit is contained in:
Daniel Eklöf 2019-04-29 18:47:46 +02:00
parent aba597d5cc
commit 6622616ec7

3
yml.c
View file

@ -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: