From de39ac7bcc3a52dfe2895a3facfc4f9f3801fc40 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 29 Jun 2024 02:00:40 -0400 Subject: [PATCH] Fix undef warning when `daemon` is unset This fixes a bug introduced in commit 88eb2ed4fe9879670ff808dc0703834aac654181 --- ddclient.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 25bd8e4..ecfa7a6 100755 --- a/ddclient.in +++ b/ddclient.in @@ -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'})) {