]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rules.pl: Add workaround to hide a warning about an only once used
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 12 Feb 2022 14:24:52 +0000 (15:24 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 12 Feb 2022 14:24:52 +0000 (15:24 +0100)
variable.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl

index 162781f7ac71a3d67a32898d348f7ca378430008..c0878059a5040c217d4a344e349f979a683afda6 100644 (file)
@@ -109,6 +109,10 @@ my $POLICY_INPUT_ACTION    = $fwoptions{"FWPOLICY2"};
 my $POLICY_FORWARD_ACTION  = $fwoptions{"FWPOLICY"};
 my $POLICY_OUTPUT_ACTION   = $fwoptions{"FWPOLICY1"};
 
+#workaround to suppress a warning when a variable is used only once
+my @dummy = ( $Location::Functions::ipset_db_directory );
+undef (@dummy);
+
 # MAIN
 &main();