mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-24 02:04:10 +03:00
map_storage: check for definedness not perl-truthiness
as else it would reject possible a valid set value Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e214cda8f5
commit
b6d9b54b5b
@ -104,7 +104,7 @@ sub map_storage {
|
||||
return $source if !defined($map);
|
||||
|
||||
return $map->{entries}->{$source}
|
||||
if defined($map->{entries}) && $map->{entries}->{$source};
|
||||
if $map->{entries} && defined($map->{entries}->{$source});
|
||||
|
||||
return $map->{default} if $map->{default};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user