Fix logical expression which is always true
authorSławomir Demeszko <s.demeszko@wireless-instruments.com>
Mon, 22 Dec 2014 17:23:50 +0000 (18:23 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 22 Dec 2014 20:42:34 +0000 (21:42 +0100)
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
commands-wms.c

index b85cd705b94dfd93a3bc90161d14e9043d15baff..c5be0f087b585128a55ed52cd981f12d84626e5a 100644 (file)
@@ -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;