From: Sławomir Demeszko Date: Mon, 22 Dec 2014 17:23:50 +0000 (+0100) Subject: Fix logical expression which is always true X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c7168bc4c779abd77aba8429b6f24e9099c79b27;p=project%2Fuqmi.git Fix logical expression which is always true Signed-off-by: SÅ‚awomir Demeszko --- 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;