modinfo REFACTOR explicit assert
@@ -642,6 +642,7 @@ sr_modinfo_edit_apply(struct sr_mod_info_s *mod_info, const struct lyd_node *edi
return err_info;
}
+ assert(ly_mod);
if (!strcmp(ly_mod->name, "sysrepo")) {
sr_errinfo_new(&err_info, SR_ERR_UNSUPPORTED, "Data of internal module \"sysrepo\" cannot be modified.");
return err_info;
