summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Compression
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-07-28 05:26:05 +0200
committerGuillem Jover <guillem@debian.org>2014-08-09 23:04:37 +0200
commit53ab15cf80df8727026cee31cb8dc7899f2488e8 (patch)
tree6b119947af0b625579be52567f1894bedc7c71a6 /scripts/Dpkg/Compression
parentb0337f001bee1f3791cb87505b1330c9bf83e2be (diff)
downloaddpkg-53ab15cf80df8727026cee31cb8dc7899f2488e8.tar.gz
scripts: Use // instead of || where appropriate
Replace only safe usages, i.e. those that fallback on initialization values that evaluate to false anyway. Or when the API is explicit about the variable being undefined.
Diffstat (limited to 'scripts/Dpkg/Compression')
-rw-r--r--scripts/Dpkg/Compression/FileHandle.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Compression/FileHandle.pm b/scripts/Dpkg/Compression/FileHandle.pm
index 391728c26..87393932d 100644
--- a/scripts/Dpkg/Compression/FileHandle.pm
+++ b/scripts/Dpkg/Compression/FileHandle.pm
@@ -419,7 +419,7 @@ sub open_for_read {
sub cleanup {
my ($self) = @_;
- my $cmdline = *$self->{compressor}{cmdline} || '';
+ my $cmdline = *$self->{compressor}{cmdline} // '';
*$self->{compressor}->wait_end_process(nocheck => *$self->{allow_sigpipe});
if (*$self->{allow_sigpipe}) {
unless (($? == 0) || (WIFSIGNALED($?) && (WTERMSIG($?) == SIGPIPE))) {