aboutsummaryrefslogtreecommitdiffstats
path: root/addons/chan_mobile.c
diff options
context:
space:
mode:
Diffstat (limited to 'addons/chan_mobile.c')
-rw-r--r--addons/chan_mobile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c
index 1bceed105..dbe20ee0a 100644
--- a/addons/chan_mobile.c
+++ b/addons/chan_mobile.c
@@ -2232,7 +2232,7 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch
*/
state = 0;
s = strlen(buf);
- for (i = 0; i < s && s != 6; i++) {
+ for (i = 0; i < s && state != 6; i++) {
switch (state) {
case 0: /* search for start of the number section (,) */
if (buf[i] == ',') {