兼容 asr1903
Change-Id: I3888f1adc86ea1fa73af4996d31f40223c0e5735
diff --git a/mbtk/mbtk_rild_v2/src/atchannel.c b/mbtk/mbtk_rild_v2/src/atchannel.c
index f959a59..80f8e68 100755
--- a/mbtk/mbtk_rild_v2/src/atchannel.c
+++ b/mbtk/mbtk_rild_v2/src/atchannel.c
@@ -321,6 +321,7 @@
if(*line == '"')
{
char *line_temp = strdup(line);
+ char *free_ptr = line_temp;
line_temp++;
if(strlen(line_temp) > 0)
{
@@ -332,7 +333,7 @@
}
}
addIntermediate(port, line_temp);
- free(line_temp);
+ free(free_ptr);
}
else
{
@@ -1303,7 +1304,7 @@
* Returns error code from response
* Assumes AT+CMEE=1 (numeric) mode
*/
-int at_get_cme_error(const ATResponse *p_response)
+AT_CME_Error at_get_cme_error(const ATResponse *p_response)
{
int ret;
int err;