commit | 040916440a4ba84ba152548c6db7cf6850a64f5f | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jun 29 11:50:14 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Jul 01 12:47:30 2020 +0200 |
tree | 24844129acfd52cc7cdaeae5d3c6376efc8f6560 | |
parent | 2172574f2a9bad4014db0b3262654a80d796b058 [diff] [blame] |
data tree BUGFIX opaq node handling
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c index 4e85ebe..cb2cb1f 100644 --- a/src/tree_data_helpers.c +++ b/src/tree_data_helpers.c
@@ -57,7 +57,7 @@ if (children) { child = *children; if (options & LYD_CHILDREN_SKIP_KEYS) { - while (child && (child->schema->flags & LYS_KEY)) { + while (child && child->schema && (child->schema->flags & LYS_KEY)) { child = child->next; } }