download-from-binary-cache.pl: Get rid of an uninitialized value warning

Reported by Pablo Costa.
This commit is contained in:
Eelco Dolstra 2013-05-15 15:47:05 +02:00
parent 31a551a60f
commit a4cb62ac25

View file

@ -225,7 +225,7 @@ sub getAvailableCaches {
}
}
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"};
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"} // "";
foreach my $url (@untrustedUrls) {
next unless scalar(grep { $url eq $_ } @trustedUrls) > 0;
push @urls, $url;