From c43697c16cc9b77151012701b578ecc72bc2deed Mon Sep 17 00:00:00 2001 From: Renny Koshy Date: Fri, 21 Jun 2019 23:55:32 -0400 Subject: [PATCH] - Fixed a build issue by initializing "index" in the header file --- include/rapidjson/schema.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 26ae947..1ff8883 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -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;