diff --git a/ddclient.in b/ddclient.in index ecfa7a6..dca3bd0 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1950,7 +1950,7 @@ sub init_config { ## merge options into host definitions or globals if (@hosts) { for my $h (@hosts) { - $config{$h} = {%{$config{$h}}, %options}; + $config{$h} = {%{$config{$h} // {}}, %options}; } $opt{'host'} = join(',', @hosts); } else {