]> git.proxmox.com Git - qemu-server.git/commit
fix #2032: check that type is set before using
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 17 Dec 2018 08:19:58 +0000 (09:19 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 17 Dec 2018 08:23:00 +0000 (09:23 +0100)
commit86c9fafefc696a9c19b9ada00ea2793f6a0e4883
tree1c082342ccfbd1e853c1592f09030b848c0efbc7
parent8256220068ca49f12e594119ade46395e3fe7755
fix #2032: check that type is set before using

When not setting 'vga' we would get a warning:

Use of uninitialized value $type in string eq at
/usr/share/perl5/PVE/QemuServer.pm line 2026.

This patch changes the order of the conditions and checks if $type is set
before using it, so that we do not get the warning anymore.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm