aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/ArgParser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/ArgParser.cxx')
-rw-r--r--src/protocol/ArgParser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/ArgParser.cxx b/src/protocol/ArgParser.cxx
index 0ab19f7d..6bd53a35 100644
--- a/src/protocol/ArgParser.cxx
+++ b/src/protocol/ArgParser.cxx
@@ -103,7 +103,7 @@ check_range(Client *client, unsigned *value_r1, unsigned *value_r2,
if (*test == ':') {
value = strtol(++test, &test2, 10);
- if (test2 == test || *test2 != '\0') {
+ if (*test2 != '\0') {
command_error(client, ACK_ERROR_ARG,
"Integer or range expected: %s", s);
return false;