Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Coutand2012-04-16 13:02:16 +0000
committerEugene Tarassov2012-04-16 19:17:29 +0000
commit161218547d8948da5591046ba45982a99eb5b2cc (patch)
tree060099a597d4e13a9243619516ed87866158d596
parent48b5ab28918ffbd5392a6e74236a843a3ac9a521 (diff)
downloadorg.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.tar.gz
org.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.tar.xz
org.eclipse.tcf.agent-161218547d8948da5591046ba45982a99eb5b2cc.zip
Fix bug in context query parsing of escaped characters.
-rw-r--r--agent/tcf/services/contextquery.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/agent/tcf/services/contextquery.c b/agent/tcf/services/contextquery.c
index f3226d89..9e018441 100644
--- a/agent/tcf/services/contextquery.c
+++ b/agent/tcf/services/contextquery.c
@@ -115,10 +115,7 @@ int parse_context_query(const char * q) {
while (*q != '"') {
if (*q == '\\') {
q++;
- if (*q == '\\' || *q == '"') {
- add_char(*q++);
- }
- else {
+ if (*q != '\\' && *q != '"') {
set_errno(ERR_OTHER, "Invalid context query syntax: \" and \\ are the only characters that can be escaped");
return -1;
}

Back to the top