From c7168bc4c779abd77aba8429b6f24e9099c79b27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C5=82awomir=20Demeszko?= Date: Mon, 22 Dec 2014 18:23:50 +0100 Subject: [PATCH] Fix logical expression which is always true MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: SÅ‚awomir Demeszko --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index b85cd70..c5be0f0 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -560,7 +560,7 @@ pdu_encode_number(unsigned char *dest, const char *str, bool smsc) } for (i = 0; str[i]; i++) { - if (str[i] >= '0' || str[i] <= '9') + if (str[i] >= '0' && str[i] <= '9') continue; ascii = true; -- 2.25.1