Merge pull request #1529 from rkoshy/master

Fixed a build issue by initializing "index" in the header file
This commit is contained in:
Milo Yip 2019-10-15 09:49:27 +08:00 committed by GitHub
commit 1a825d24fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -899,7 +899,7 @@ public:
}
}
SizeType index;
SizeType index = 0;
if (FindPropertyIndex(ValueType(str, len).Move(), &index)) {
if (context.patternPropertiesSchemaCount > 0) {
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = properties_[index].schema;