yin parser BUGFIX copy-paste error
comparing node name to a wrong value, if-feature in notification and
anyxml was not parsed at all.
diff --git a/src/parser/yin.c b/src/parser/yin.c
index b966054..05b226d 100644
--- a/src/parser/yin.c
+++ b/src/parser/yin.c
@@ -3207,7 +3207,7 @@
if (r) {
goto error;
}
- } else if (!strcmp(sub->name, "must")) {
+ } else if (!strcmp(sub->name, "if-feature")) {
GETVAL(value, sub, "name");
anyxml->features[anyxml->features_size] = resolve_feature(value, module, LOGLINE(sub));
if (!anyxml->features[anyxml->features_size]) {
@@ -4284,7 +4284,7 @@
if (r) {
goto error;
}
- } else if (!strcmp(sub->name, "typedef")) {
+ } else if (!strcmp(sub->name, "if-features")) {
GETVAL(value, sub, "name");
notif->features[notif->features_size] = resolve_feature(value, module, LOGLINE(sub));
if (!notif->features[notif->features_size]) {