[OpenWrt-Devel] [PATCH uqmi] Fix logical expression which is always true
Sławomir Demeszko
s.demeszko at wireless-instruments.com
Mon Dec 22 12:23:50 EST 2014
Signed-off-by: Sławomir Demeszko <s.demeszko at wireless-instruments.com>
---
commands-wms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands-wms.c b/commands-wms.c
index 02874f0..1b4373f 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;
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list