commit | f027df7b8d1a68323a396cf6e4a6b50500d5839f | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Sep 15 13:00:28 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Tue Sep 15 13:00:28 2020 +0200 |
tree | 601902fddc004e029e185ca3bd32bd67eb355efa | |
parent | 011e4aa0c62902b24dd42833a7b77a83f313b876 [diff] [blame] |
schema parsers BUGFIX setting correct return error code
diff --git a/src/tree_schema.c b/src/tree_schema.c index 3b6bc19..adc84fc 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c
@@ -914,6 +914,7 @@ break; } LY_CHECK_GOTO(ret, error); + assert(submod); /* make sure that the newest revision is at position 0 */ lysp_sort_revisions(submod->revs);