summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Šegan <danilo@canonical.com>2010-03-18 21:31:49 +0100
committerDanilo Šegan <danilo@canonical.com>2010-03-18 21:31:49 +0100
commit5454215498e2c27a6529b724dfe97ccebaeb9103 (patch)
tree21dc72375d410fd04075923e73dcf1db90142c54
parenta208cf58d30fbf5b29141a5fc41030225f92f92c (diff)
downloadintltool-5454215498e2c27a6529b724dfe97ccebaeb9103.tar.gz
Take $list as reference in AddFileToListIfMissing.
-rw-r--r--intltool-update.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/intltool-update.in b/intltool-update.in
index bdd4a0a..ba064f2 100644
--- a/intltool-update.in
+++ b/intltool-update.in
@@ -325,7 +325,7 @@ sub removeFromArray
sub AddFileToListIfMissing
{
- my ($file, @list) = @_;
+ my ($file, $list) = @_;
my $name_pattern;
if ($file =~ /^\.\.\//) {
@@ -337,7 +337,7 @@ sub AddFileToListIfMissing
my $file_name = unpack($name_pattern, $file);
if (defined isNotValidMissing ($file_name)) {
## Remove the first 3 chars if needed and add newline
- push @list, $file_name . "\n";
+ push @$list, $file_name . "\n";
}
}