5
0
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:
Thomas Lamprecht 2020-04-07 17:25:35 +02:00
parent e214cda8f5
commit b6d9b54b5b

View File

@ -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};