summaryrefslogtreecommitdiff
path: root/modules/TemplateParser.pm
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2010-06-29 18:22:16 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2010-06-29 18:22:16 +0000
commitdf3b4e47d08124ef4d1c09ce29d2738b22b06577 (patch)
tree47863bf539011bac1417921fd321434a00c83397 /modules/TemplateParser.pm
parent8008ad7b73238397fef8e7f732bf79798323964b (diff)
downloadMPC-df3b4e47d08124ef4d1c09ce29d2738b22b06577.tar.gz
Fix bmake generation test failures. Thanks to Chad Elliott for notifying about
the tests and Adam Mitz for debugging the issue.
Diffstat (limited to 'modules/TemplateParser.pm')
-rw-r--r--modules/TemplateParser.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/TemplateParser.pm b/modules/TemplateParser.pm
index cfdf4b50..4c296d0c 100644
--- a/modules/TemplateParser.pm
+++ b/modules/TemplateParser.pm
@@ -251,7 +251,7 @@ sub split_parameters {
## Return the parameters (which includes whatever is left in the
## string). Just return it instead of pushing it onto @params.
- return @params, $str;
+ return ($str eq '') ? @params : (@params, $str);
}