Ignore quotes in expression
authorJindrich Novy <jnovy@dhcp-lab-186.brq.redhat.com>
Tue, 20 May 2008 12:07:10 +0000 (14:07 +0200)
committerJindrich Novy <jnovy@dhcp-lab-186.brq.redhat.com>
Tue, 20 May 2008 12:07:10 +0000 (14:07 +0200)
build/expression.c

index aeab062..e71f179 100644 (file)
@@ -285,11 +285,13 @@ static int rdToken(ParseState state)
       char *temp;
       size_t ts;
 
+      p++;
       for (ts=1; p[ts] && p[ts] != '\"'; ts++);
       temp = xmalloc(ts+1);
       memcpy(temp, p, ts);
       p += ts-1;
       temp[ts] = '\0';
+      p++;
 
       token = TOK_STRING;
       v = valueMakeString( rpmExpand(temp, NULL) );