Fix undef warning when daemon is unset

This fixes a bug introduced in commit
88eb2ed4fe
This commit is contained in:
Richard Hansen 2024-06-29 02:00:40 -04:00
parent ae7a9dce2a
commit de39ac7bcc

View file

@ -1919,7 +1919,7 @@ sub init_config {
## parse an interval expression (such as '5m') into number of seconds
$opt{'daemon'} = interval(opt('daemon')) if defined($opt{'daemon'});
## make sure the interval isn't too short
$opt{'daemon'} = minimum('daemon') if opt('daemon') > 0 && opt('daemon') < minimum('daemon');
$opt{'daemon'} = minimum('daemon') if opt('daemon') && opt('daemon') < minimum('daemon');
## define or modify host options specified on the command-line
if (defined($opt{'options'})) {