From: Dirk Koopman Date: Fri, 8 May 2020 15:26:05 +0000 (+0100) Subject: squash some warnings X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=18d20f736241e0f9423f83fee86db16141cdf1b5;p=spider.git squash some warnings --- diff --git a/perl/DXProtHandle.pm b/perl/DXProtHandle.pm index 40271df7..cd6a7518 100644 --- a/perl/DXProtHandle.pm +++ b/perl/DXProtHandle.pm @@ -224,9 +224,11 @@ sub handle_11 # add it Spot::add(@spot); - my $ip = $spot[14] if exists $spot[14]; + my $ip = ''; + $ip ||= $spot[14] if exists $spot[14]; if (isdbg('progress')) { my $sip = $ip ? sprintf "($ip)" : '' unless $ip =~ m|[\(\)\*]|; + $sip ||= ''; my $d = ztime($spot[2]); my $s = "SPOT: $spot[1] on $spot[0] \@ $d by $spot[4]$sip\@$spot[7]"; $s .= " '$spot[3]'" if $spot[3];