Handle right bracket in next_unquoted_string

This commit is contained in:
Zhenhua Zhang 2009-10-23 00:47:08 +08:00 committed by Denis Kenzior
parent 732b91b2e8
commit 525ca751bd
1 changed files with 2 additions and 2 deletions

View File

@ -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';