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 (quote==*bp) {
|
||||
quote = 0;
|
||||
if (cp<fbuf+MAXLINE) *cp++ = *bp;
|
||||
if (!comment && cp<fbuf+MAXLINE) *cp++ = *bp;
|
||||
++bp;
|
||||
continue;
|
||||
} else if (!quote) {
|
||||
quote = *bp++;
|
||||
if (cp<fbuf+MAXLINE) *cp++ = quote;
|
||||
if (!comment && cp<fbuf+MAXLINE) *cp++ = quote;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue