From 6ef0c62cd09d0bb431862f4eba58420a33884fdf Mon Sep 17 00:00:00 2001 From: laforge Date: Thu, 8 Mar 2007 20:48:31 +0000 Subject: 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 --- src/gsmd/vendor_ti.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3