X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=parser.c;fp=parser.c;h=e063bf9b3a983a50d8a7a31c83bf404c02aed399;hb=056b51087c4f7d9b9489a547fadcd51e3c944d8e;hp=3f40ffb71ed99b8eec4cb7c83861f1637306897c;hpb=4923f5a1c9b32a801a66a4ac458b401207b7d7ac;p=userv.git diff --git a/parser.c b/parser.c index 3f40ffb..e063bf9 100644 --- a/parser.c +++ b/parser.c @@ -148,7 +148,7 @@ static int dequote(char *inplace) { int v; p=q=inplace; - assert(*p++ = '"'); + assert(*p=='"'); p++; while (*p && *p != '"') { if (*p != '\\') { *q++= *p++; continue; } switch (*++p) { @@ -183,7 +183,7 @@ static int dequote(char *inplace) { } } } - assert(*p); assert(!*++p); + assert(*p); p++; assert(!*p); *q++= 0; return tokv_quotedstring; }