diff options
| author | 2018-12-20 14:39:20 +0000 | |
|---|---|---|
| committer | 2018-12-20 14:39:20 +0000 | |
| commit | b34e8528ca7e6aee84ba5eef9739155f658690c5 (patch) | |
| tree | 4fdd8e30aa99ca95122a218207ca25a2893943a8 | |
| parent | bdadd6cc4c666f3fc1ddb742a778d3b708e33b8d (diff) | |
| parent | b9e195546ee80e46fca5e075c9b1ea069821f18a (diff) | |
Merge "Use vector instead of VLA to avoid uninitialized values"
| -rw-r--r-- | tools/incident_section_gen/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index faa354788c4e..f6c9c0e86fe4 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -453,7 +453,7 @@ static bool generateSectionListCpp(Descriptor const* descriptor) { map<string, bool> variableNames; set<string> parents; vector<const FieldDescriptor*> fieldsInOrder = sortFields(descriptor); - bool skip[fieldsInOrder.size()]; + vector<bool> skip(fieldsInOrder.size()); const Destination incidentDest = getPrivacyFlags(descriptor).dest(); for (size_t i=0; i<fieldsInOrder.size(); i++) { |