Skip to content

Commit c82ebf4

Browse files
committed
JSON converter: fix usage of uninitialized value if subTemplateMultiList is empty
1 parent dc39b34 commit c82ebf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/converters/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ to_stMulList(struct context *buffer, const struct fds_drec_field *field)
13111311
// Loop through blocks in the list
13121312
int added = 0;
13131313
int rc_block;
1314-
int rc_rec;
1314+
int rc_rec = FDS_EOC; // Default value (the block might be empty)
13151315

13161316
while ((rc_block = fds_stmlist_iter_next_block(&stMulList_iter)) == FDS_OK) {
13171317
// Separate fields

0 commit comments

Comments
 (0)