5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2024-12-22 21:33:48 +03:00

fix a variable declared in conditional statement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-04 12:13:18 +02:00
parent 316d63e9c7
commit d4775ec3e9

View File

@ -327,7 +327,8 @@ sub param_to_job {
my $job = {}; my $job = {};
my $source = parse_target($param->{source}); my $source = parse_target($param->{source});
my $dest = parse_target($param->{dest}) if $param->{dest}; my $dest;
$dest = parse_target($param->{dest}) if $param->{dest};
$job->{name} = !$param->{name} ? "default" : $param->{name}; $job->{name} = !$param->{name} ? "default" : $param->{name};
$job->{dest} = $param->{dest} if $param->{dest}; $job->{dest} = $param->{dest} if $param->{dest};