]> git.proxmox.com Git - qemu-server.git/commit
cfg2cmd: fix uninitialized value warning on OVMF w/o efidisk
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 6 May 2020 12:17:52 +0000 (14:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 12:23:04 +0000 (14:23 +0200)
commitb57d4863e2165aab83d94b8c897379900bc9d07e
tree139f179d1d699a8fa5abb01678b25b8555951948
parent7c54973e47ebcbdc6126983fca3857b34e878e55
cfg2cmd: fix uninitialized value warning on OVMF w/o efidisk

It's possible to have a VM with OVMF but without an efidisk, so don't
call parse_drive on a potential undef value.

Partial revert of 818c3b8d91 ("cfg2cmd: ovmf: code cleanup")

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm