From: Guillaume Zajac Date: Mon, 22 Apr 2013 15:08:53 +0000 (+0200) Subject: Remove quotes from SCA X-Git-Tag: submit/tizen_2.2/20130714.154350~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=291b1839153853054ed7c624abebd7d093db55b5;p=framework%2Ftelephony%2Ftel-plugin-imc.git Remove quotes from SCA Change-Id: I9046139dde028c328eebd3ea21e852605d083804 --- diff --git a/src/s_sms.c b/src/s_sms.c index a4081a4..ed87bad 100755 --- a/src/s_sms.c +++ b/src/s_sms.c @@ -1103,6 +1103,7 @@ static void on_response_get_sca(TcorePending *pending, int data_len, const void UserRequest *user_req = NULL; GSList *tokens = NULL; + const char *sca_tok_addr; char *gslist_line = NULL, *sca_addr = NULL, *sca_toa = NULL; dbg("Entry"); @@ -1118,9 +1119,10 @@ static void on_response_get_sca(TcorePending *pending, int data_len, const void gslist_line = (char *)at_response->lines->data; tokens = tcore_at_tok_new(gslist_line); - sca_addr = g_slist_nth_data(tokens, 0); + sca_tok_addr = g_slist_nth_data(tokens, 0); sca_toa = g_slist_nth_data(tokens, 1); + sca_addr = tcore_at_tok_extract(sca_tok_addr); if ((NULL != sca_addr) && (NULL != sca_toa)) { dbg("sca_addr: [%s]. sca_toa: [%s]", sca_addr, sca_toa); @@ -1152,8 +1154,8 @@ static void on_response_get_sca(TcorePending *pending, int data_len, const void tcore_user_request_send_response(user_req, TRESP_SMS_GET_SCA, sizeof(respGetSca), &respGetSca); - if(tokens) - tcore_at_tok_free(tokens); + tcore_at_tok_free(tokens); + g_free(sca_addr); dbg("Exit"); return;