Correct handling of expressions consisting of a single number.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-10 15:19:30 -08:00
parent b349cc0f22
commit b9d5b92f1b

View File

@ -2212,7 +2212,9 @@ sub evaluate_expression( $$$ ) {
print "EXPR=> $expression\n" if $debug;
unless ( $expression =~ /^\d+$/ ) {
if ( $expression =~ /^\d+$/ ) {
$val = $expression
} else {
#
# Not a simple one-term expression -- compile it
#