Skip to content

Commit 1a825d2

Browse files
authored
Merge pull request Tencent#1529 from rkoshy/master
Fixed a build issue by initializing "index" in the header file
2 parents 6a6bed2 + c43697c commit 1a825d2

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)