projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae3537e
)
Fix logical expression which is always true
author
Sławomir Demeszko
<s.demeszko@wireless-instruments.com>
Mon, 22 Dec 2014 17:23:50 +0000
(18:23 +0100)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/commands-wms.c
b/commands-wms.c
index b85cd705b94dfd93a3bc90161d14e9043d15baff..c5be0f087b585128a55ed52cd981f12d84626e5a 100644
(file)
--- 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;