commit | 5e1c605ef083bfef49fd9dd376963dc4ea62e63e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 17 15:43:33 2016 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 17 15:43:33 2016 +0100 |
tree | 927fef4ac7a91d9cc366e7590ecfe662e465d402 | |
parent | 642cad0ca1aa3b4cc71ef36b1f07893215240e77 [diff] [blame] |
BUGFIX choice default is not mandatory
diff --git a/src/netopeerguid.c b/src/netopeerguid.c index 34f6b35..62766ca 100644 --- a/src/netopeerguid.c +++ b/src/netopeerguid.c
@@ -812,7 +812,9 @@ node_metadata_basic((struct lys_node *)choice, parent); /* default */ - node_metadata_text(choice->dflt->name, "default", parent); + if (choice->dflt) { + node_metadata_text(choice->dflt->name, "default", parent); + } /* when */ node_metadata_when(choice->when, parent);