]> git.proxmox.com Git - pve-firewall.git/commit
fix variables declared in conditional statement
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Apr 2023 14:23:40 +0000 (16:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Apr 2023 14:23:42 +0000 (16:23 +0200)
commit521148df136f6a7096e04a79418d55e81bf8825d
tree69ce068c4ca52af1bd493096ecb956629fe6f1c4
parente3d08ca1a6c3ef1b3ed918c453d1330d160d4a2d
fix variables declared in conditional statement

as that can trigger hard to reproduce/debug bugs; as with such
statements the variable won't be necessarily undef if the post-if
evaluates to false, but rather will hold the (now bogus) value from
the last time it evaluated to true.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm