summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/common.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 0353da552..dbb954ea3 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -90,7 +90,8 @@ sub removeXiBSuffix {
$_;
}
sub formatXiB {
- my ($newnb, $newbase) = (@_, 1);
+ my ($newnb, $newbase) = @_;
+ $newbase ||= 1;
my ($nb, $base);
my $decr = sub {
($nb, $base) = ($newnb, $newbase);