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:
parent
316d63e9c7
commit
d4775ec3e9
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user