summaryrefslogtreecommitdiff
path: root/modules/Options.pm
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2005-01-17 14:01:54 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2005-01-17 14:01:54 +0000
commit73660911a5de8029b697e190a2b984fe0581a8d1 (patch)
tree278adfe5b915237a952fcbf8675bb405404cfd97 /modules/Options.pm
parent60de646acc44857c790401e222fb2888a91bb87b (diff)
downloadMPC-73660911a5de8029b697e190a2b984fe0581a8d1.tar.gz
ChangeLogTag: Mon Jan 17 07:54:36 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/Options.pm')
-rw-r--r--modules/Options.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/Options.pm b/modules/Options.pm
index a3a2942c..c250c0d1 100644
--- a/modules/Options.pm
+++ b/modules/Options.pm
@@ -429,7 +429,10 @@ sub options {
else {
$op = 0;
}
- $addtemp{$name} = [$op, $val];
+ if (!defined $addtemp{$name}) {
+ $addtemp{$name} = [];
+ }
+ push(@{$addtemp{$name}}, [$op, $val]);
}
else {
$self->optionError('Invalid argument to -value_template');