aboutsummaryrefslogtreecommitdiffstats
path: root/src/nmt
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-07-27 12:05:11 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-08-08 12:54:21 +0200
commit7c9ce960d70a92cbace3c4030f4faabcf378ef42 (patch)
tree2518dd842f244deaf4a622b89994b121912f15d9 /src/nmt
parent5090f5a18d0c6a0494fe92268112613fef9be0e0 (diff)
Fixes of checking digits
Diffstat (limited to 'src/nmt')
-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;
}