commit | acfc9288ef481a498e8ccfd4bef065c34bc82a3e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Feb 04 12:08:23 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Feb 04 12:08:23 2021 +0100 |
tree | c3ee48d1e281c445b563fb621dd73c685481820a | |
parent | 6c16cdab24cd9f98c451c13af2299eff2316e8b4 [diff] |
path BUGFIX handle 0 path count It occurs in a specific case when called from lyd_new_path2.
diff --git a/src/path.c b/src/path.c index 3f4ad18..e1dedef 100644 --- a/src/path.c +++ b/src/path.c
@@ -912,7 +912,7 @@ struct lyd_node **match) { LY_ARRAY_COUNT_TYPE u; - struct lyd_node *prev_node = NULL, *node, *target; + struct lyd_node *prev_node = NULL, *node = NULL, *target; uint64_t pos; assert(path && start);