Skip to content

Commit

Permalink
snmp/samba: for generic vars, ensure we have a value (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
VVelox authored Jul 30, 2024
1 parent c4f9f35 commit 6d406ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snmp/samba
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ foreach my $line (@profiling_lines) {
}
} ## end else [ if ( $line_split[0] =~ /read/ || $line_split...)]
} else {
$data->{general}{ $line_split[0] } = $line_split[1];
if (defined($line_split[1])) {
$data->{general}{ $line_split[0] } = $line_split[1];
}
}
} ## end if ( $line_split[1] =~ /^[0-9]+$/ )
} ## end foreach my $line (@profiling_lines)
Expand Down

0 comments on commit 6d406ea

Please sign in to comment.