Skip to content

Commit c43697c

Browse files
committed
- Fixed a build issue by initializing "index" in the header file
1 parent 4b3d7c2 commit c43697c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ class Schema {
899899
}
900900
}
901901

902-
SizeType index;
902+
SizeType index = 0;
903903
if (FindPropertyIndex(ValueType(str, len).Move(), &index)) {
904904
if (context.patternPropertiesSchemaCount > 0) {
905905
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = properties_[index].schema;

0 commit comments

Comments
 (0)