]> git.proxmox.com Git - pve-installer.git/commitdiff
create_ipconf_view: if undefined variable in string cmp warning
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 Jun 2019 18:53:52 +0000 (20:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 Jun 2019 18:53:52 +0000 (20:53 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 2c44567f4dc9d6eee437d5e8223fc36733ab4031..956661d5e3f3fca81e8c63cddebdbdfdb2588120 100755 (executable)
@@ -2038,7 +2038,7 @@ sub create_ipconf_view {
        my $current = shift;
 
        my $new = $device_active_map->{$current->get_active()};
-       return if $new eq $ipconf->{selected};
+       return if defined($ipconf->{selected}) && $new eq $ipconf->{selected};
 
        $ipconf->{selected} = $new;
        my $iface = $ipconf->{ifaces}->{$ipconf->{selected}};