From 7fde55c1882f05889271baa30422e9530e0e2e25 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 30 Jun 2024 23:44:54 -0400 Subject: [PATCH] Don't initialize `%opt` entries to `undef` There's no need -- if the key doesn't exist the value returned is already `undef`. This prevents debug output from being littered with `undef` lines. --- ddclient.in | 1 - 1 file changed, 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index e0f6c9a..e82af89 100755 --- a/ddclient.in +++ b/ddclient.in @@ -2098,7 +2098,6 @@ sub process_args { next if !ref($_); my ($key, $specifier) = @$_; push @spec, $key . $specifier; - $opt{$key} //= undef; } if (!GetOptions(\%opt, @spec)) { $opt{'help'}('', '');