Skip to content

Commit

Permalink
Fix error (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey-Zumar authored and dcrankshaw committed Jan 23, 2018
1 parent 7161aeb commit 0fc0452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libclipper/src/json_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ void add_json_array(rapidjson::Document& d, const char* key_name,
rapidjson::Value json_array(rapidjson::kArrayType);
rapidjson::Document::AllocatorType& allocator = d.GetAllocator();
for (std::string json_string : values_to_add) {
rapidjson::Document json_obj;
rapidjson::Document json_obj(&allocator);
parse_json(json_string, json_obj);
json_array.PushBack(json_obj, allocator);
}
Expand Down

0 comments on commit 0fc0452

Please sign in to comment.