summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatresult.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c
index 1436ae30..3d07e132 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';