From: Zhenhua Zhang Date: Thu, 22 Oct 2009 16:47:08 +0000 (+0800) Subject: Handle right bracket in next_unquoted_string X-Git-Tag: 2.0_alpha~3181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6964ef918b44966ba2fd732011a9873efd521612;p=framework%2Fconnectivity%2Fconnman.git Handle right bracket in next_unquoted_string --- diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c index 1436ae3..3d07e13 100644 --- a/gatchat/gatresult.c +++ b/gatchat/gatresult.c @@ -131,12 +131,12 @@ gboolean g_at_result_iter_next_unquoted_string(GAtResultIter *iter, goto out; } - if (line[pos] == '"') + if (line[pos] == '"' || line[pos] == ')') return FALSE; end = pos; - while (end < len && line[end] != ',') + while (end < len && line[end] != ',' && line[end] != ')') end += 1; iter->buf[end] = '\0';