schema parsers BUGFIX use of uninitialized memory
diff --git a/src/resolve.c b/src/resolve.c
index 460d2d1..fcfe246 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -4799,6 +4799,7 @@
                 must[j].ref = lydict_insert(ctx, rfn->must[k].ref, 0);
                 must[j].eapptag = lydict_insert(ctx, rfn->must[k].eapptag, 0);
                 must[j].emsg = lydict_insert(ctx, rfn->must[k].emsg, 0);
+                must[j].flags = rfn->must[k].flags;
             }
 
             *old_must = must;