commit | bd777666d685aeb978edc59eb7f49d94e633cdd8 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Jul 09 13:58:40 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jul 09 13:58:40 2021 +0200 |
tree | 7f9f79152a50c1c2ee6875d663bfef86d4410b31 | |
parent | 41799e22a4a4f3793a6f04df4e40095eb534bfba [diff] [blame] |
out BUGFIX trim print and opque nodes Fixes cesnet/netopeer2#952
diff --git a/src/out.c b/src/out.c index 4c72b10..d848b25 100644 --- a/src/out.c +++ b/src/out.c
@@ -43,7 +43,7 @@ if (node->flags & LYD_DEFAULT) { /* implicit default node/NP container with only default nodes */ return 0; - } else if (node->schema->nodetype & LYD_NODE_TERM) { + } else if (node->schema && (node->schema->nodetype & LYD_NODE_TERM)) { if (lyd_is_default(node)) { /* explicit default node */ return 0;