summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/util.pm b/urpm/util.pm
index 931a0bc0..c786227b 100644
--- a/urpm/util.pm
+++ b/urpm/util.pm
@@ -65,7 +65,7 @@ sub reduce_pathname {
#- clean url to remove any macro (which cannot be solved now).
#- take care if this is a true url and not a simple pathname.
my ($host, $dir) = $url =~ m|([^:/]*://[^/]*/)?(.*)|;
- $host = '' if !defined $host;
+ $host //= '';
#- remove any multiple /s or trailing /.
#- then split all components of pathname.