summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-11-10 07:31:56 -0600
committerChad Elliott <elliottc@objectcomputing.com>2022-11-10 07:31:56 -0600
commit9c13ab74f34fbfe808a4937a0ce7548f437e0dae (patch)
treec828f0d42f17b12d0de4a2ca86c387af6529f40e /modules
parent789a5ac2a0fa499fbf0738744d82972ea6da2af9 (diff)
downloadMPC-9c13ab74f34fbfe808a4937a0ce7548f437e0dae.tar.gz
Clear out the previous custom_multi_details hash map so that we don't have extraneous data associated with commands.
Diffstat (limited to 'modules')
-rw-r--r--modules/ProjectCreator.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm
index ac5cd26c..5ebbbd0e 100644
--- a/modules/ProjectCreator.pm
+++ b/modules/ProjectCreator.pm
@@ -4674,6 +4674,11 @@ sub get_custom_value {
}
elsif ($cmd eq 'commands') { # only used with 'combined_custom'
$value = [];
+
+ ## Clear out the previous custom_multi_details hash map so that we don't
+ ## have extraneous data associated with commands from previous iterations.
+ $self->{'custom_multi_details'} = {};
+
my %details = ('flags' => 'commandflags',
'outopt' => 'output_option',
'gdir' => 'gendir');