#378 fix several uninitialized vars

This commit is contained in:
Oliver Gorwits
2021-10-07 10:19:28 +01:00
parent d535cea7db
commit a0cd7c57e2
3 changed files with 5 additions and 5 deletions

View File

@@ -349,7 +349,7 @@ sub ipv6_addr_prefixlength {
# Remove interface specific part from vrf interfaces
if ($row =~ /^((\d+\.){17}\d+)/) { $row = $1 }
# Remove the OID part from the value
my $val = $ipv6_addr_prefix->{$row};
my $val = $ipv6_addr_prefix->{$row} || '';
if ( $val =~ /^.+?((?:\d+\.){19}(\d+))$/ ) {
$val = $2;
$return->{$row} = $val;