forked from github/server
small fix in the order-parser (comments)
This commit is contained in:
parent
3271f4caf6
commit
89535b0558
|
@ -233,12 +233,12 @@ getbuf_utf8(FILE * F)
|
||||||
if (*bp=='"' || *bp=='\'') {
|
if (*bp=='"' || *bp=='\'') {
|
||||||
if (quote==*bp) {
|
if (quote==*bp) {
|
||||||
quote = 0;
|
quote = 0;
|
||||||
if (cp<fbuf+MAXLINE) *cp++ = *bp;
|
if (!comment && cp<fbuf+MAXLINE) *cp++ = *bp;
|
||||||
++bp;
|
++bp;
|
||||||
continue;
|
continue;
|
||||||
} else if (!quote) {
|
} else if (!quote) {
|
||||||
quote = *bp++;
|
quote = *bp++;
|
||||||
if (cp<fbuf+MAXLINE) *cp++ = quote;
|
if (!comment && cp<fbuf+MAXLINE) *cp++ = quote;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue