]> git.proxmox.com Git - qemu-server.git/commit
config: pending network: avoid undef-warning on old/new comparison
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 10 Mar 2024 17:12:21 +0000 (18:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 10 Mar 2024 17:27:22 +0000 (18:27 +0100)
commit3fde43d2ec80ad8e0ed39753d4fb9738ac7fd658
tree76b79e9e9eb0bea7a0e2a7e06f99248215306f3c
parent9a1b5d0e719b02d1fe0326def9c0db7ba9f04bc6
config: pending network: avoid undef-warning on old/new comparison

A network device of a VM does not necessarily has to be connected to
an actual bridge, so when a new pending value is set we need to use
the undef-safe compare helpers when checking if there was a change
between old and new value, as otherwise one gets ugly "use of
uninitialized value in string ne" warnings.

Link: https://forum.proxmox.com/threads/143072/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm