Skip to content

Commit 36f81f9

Browse files
authored
schema compile UPDATE safety assert (#2418)
1 parent efe43e3 commit 36f81f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/schema_compile_node.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,7 @@ lys_compile_type_union(struct lysc_ctx *ctx, struct lysp_type *ptypes, struct ly
16661666
LY_ARRAY_INCREMENT(utypes);
16671667
}
16681668
/* compensate u increment in main loop */
1669+
assert(additional);
16691670
--additional;
16701671

16711672
/* free the replaced union subtype */

0 commit comments

Comments
 (0)