From: Dobrica Pavlinusic Date: Fri, 20 Oct 2023 04:37:13 +0000 (+0200) Subject: fix warning in SIP messages decode X-Git-Url: http://git.rot13.org/?p=Biblio-RFID.git;a=commitdiff_plain;h=c93f97aeeef6adcd15d831efeb18beebe0c9edfa fix warning in SIP messages decode --- diff --git a/scripts/RFID-JSONP-server.pl b/scripts/RFID-JSONP-server.pl index 5440763..f29ada0 100755 --- a/scripts/RFID-JSONP-server.pl +++ b/scripts/RFID-JSONP-server.pl @@ -138,7 +138,7 @@ send_again: } foreach ( split(/\|/, $in ) ) { my ( $f, $v ) = ( $1, $2 ) if m/([A-Z]{2})(.+)/; - $hash->{$f} = decode('utf-8',$v); + $hash->{$f} = decode('utf-8',$v) if $f; } warn "# sip2 hash response ",dump($hash);