projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly skip over quoted values
[framework/connectivity/connman.git]
/
gatchat
/
gatresult.c
diff --git
a/gatchat/gatresult.c
b/gatchat/gatresult.c
index
3d07e13
..
688b26b
100644
(file)
--- a/
gatchat/gatresult.c
+++ b/
gatchat/gatresult.c
@@
-361,6
+361,17
@@
static gint skip_until(const char *line, int start, const char delim)
if (line[i] == delim)
return i;
+ if (line[i] == '\"') {
+ i += 1;
+ while (i < len && line[i] != '\"')
+ i += 1;
+
+ if (i < len)
+ i += 1;
+
+ continue;
+ }
+
if (line[i] != '(') {
i += 1;
continue;