From 18d20f736241e0f9423f83fee86db16141cdf1b5 Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Fri, 8 May 2020 16:26:05 +0100 Subject: [PATCH] squash some warnings --- perl/DXProtHandle.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.43.0