summaryrefslogtreecommitdiff
path: root/lib/sbin/parameter_parser.pl
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-05-16 12:20:11 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-05-16 12:20:11 +0000
commit4ef5191c6e95a4a879b4e704fc013250d5920e80 (patch)
tree74826eca386f619cd704cf1cd9ed8c6beb3b1ae6 /lib/sbin/parameter_parser.pl
parent2a5648be8f391c6e80165803d07b3f52fb2eb01f (diff)
Fix for checking for empty patterns in regexps:
use 'eq' rather than '==' for string comparisons. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4054 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/parameter_parser.pl')
-rw-r--r--lib/sbin/parameter_parser.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl
index b01a6af9..8c938e8f 100644
--- a/lib/sbin/parameter_parser.pl
+++ b/lib/sbin/parameter_parser.pl
@@ -623,7 +623,7 @@ sub CheckParameterDefault
# An empty regular expression should match everything.
# Instead, perl returns the result of the last match.
# Therefore, prevent using empty patterns.
- if ($range=='' || $default =~ m:$range:i)
+ if ($range eq '' || $default =~ m:$range:i)
{
$foundit = 1;
}