diff options
author | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-03-08 20:48:31 +0000 |
---|---|---|
committer | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-03-08 20:48:31 +0000 |
commit | 6ef0c62cd09d0bb431862f4eba58420a33884fdf (patch) | |
tree | 259e4505a9574a4e0265b6c0a7bd025e4d141216 /src/gsmd | |
parent | 7fda58922167e78d1db5af3da6fbdacbb7f3790f (diff) |
make AT%CPI parse tolerant to empty fields
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1279 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/gsmd')
-rw-r--r-- | src/gsmd/vendor_ti.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gsmd/vendor_ti.c b/src/gsmd/vendor_ti.c index 3124677..892945c 100644 --- a/src/gsmd/vendor_ti.c +++ b/src/gsmd/vendor_ti.c @@ -155,7 +155,7 @@ static int cpi_parse(char *buf, int len, const char *param, struct gsmd *gsmd) /* direction */ tok = strtok(NULL, ","); if (!tok) - goto out_free_io; + goto out_send; switch (*tok) { case '0': @@ -171,8 +171,9 @@ static int cpi_parse(char *buf, int len, const char *param, struct gsmd *gsmd) /* mode */ tok = strtok(NULL, ","); if (!tok) - goto out_free_io; + goto out_send; +out_send: usock_evt_send(gsmd, ucmd, GSMD_EVT_OUT_STATUS); return 0; |