mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 03:29:12 +01:00
Avoid uninitialized value in hash element.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4d30811794
commit
bd8ba435cd
@ -3025,9 +3025,13 @@ sub update_config_file( $ ) {
|
|||||||
my $annotate = shift;
|
my $annotate = shift;
|
||||||
|
|
||||||
sub is_set( $ ) {
|
sub is_set( $ ) {
|
||||||
my $value = $config{$_[0]};
|
my $option = $_[0];
|
||||||
|
|
||||||
defined( $value ) && lc( $value ) eq 'yes';
|
if ( defined $option ) {
|
||||||
|
my $value = $config{$_[0]};
|
||||||
|
|
||||||
|
defined( $value ) && lc( $value ) eq 'yes';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $wide = is_set $config{WIDE_TC_MARKS};
|
my $wide = is_set $config{WIDE_TC_MARKS};
|
||||||
|
Loading…
Reference in New Issue
Block a user