#464 check in case non numeric key in cache befor inc

This commit is contained in:
Oliver Gorwits
2023-02-20 15:41:32 +00:00
parent cdafa791d0
commit f9f3dc6490

View File

@@ -4925,7 +4925,7 @@ sub _cache {
my $store = $self->store();
if (ref {} eq ref $data) {
if (! Scalar::Util::looks_like_number($self->{"_${attr}"}) {
if (! Scalar::Util::looks_like_number($self->{"_${attr}"})) {
# https://github.com/netdisco/snmp-info/issues/464
# perhaps this is being set twice and first time gets $data ??
$self->{"_${attr}"} = 0;