aboutsummaryrefslogtreecommitdiffstats
path: root/src/nmt/nmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nmt/nmt.c')
-rw-r--r--src/nmt/nmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmt/nmt.c b/src/nmt/nmt.c
index 847be72..1ec6d08 100644
--- a/src/nmt/nmt.c
+++ b/src/nmt/nmt.c
@@ -232,7 +232,7 @@ static int dialstring2number(const char *dialstring, char *ms_country, char *ms_
PDEBUG(DNMT, DEBUG_NOTICE, "Wrong number of digits, use 7 digits: ZXXXXXX (Z=country, X=mobile number)\n");
return -1;
}
- if (dialstring[0] < '0' && dialstring[0] > '9') {
+ if (dialstring[0] < '0' || dialstring[0] > '9') {
PDEBUG(DNMT, DEBUG_NOTICE, "Invalid country digit (first digit) of dial string\n");
return -1;
}