Skip to content
Snippets Groups Projects
Commit 18797bc1 authored by Lev Walkin's avatar Lev Walkin
Browse files

more robust comments parsing

parent 88693e88
No related branches found
No related tags found
No related merge requests found
...@@ -206,6 +206,8 @@ ssize_t pxml_parse(int *stateContext, const void *xmlbuf, size_t size, pxml_call ...@@ -206,6 +206,8 @@ ssize_t pxml_parse(int *stateContext, const void *xmlbuf, size_t size, pxml_call
case ST_COMMENT_CLO_RT: case ST_COMMENT_CLO_RT:
if(C == RANGLE) { if(C == RANGLE) {
TOKEN_CB_FINAL(PXML_COMMENT, ST_TEXT, 1); TOKEN_CB_FINAL(PXML_COMMENT, ST_TEXT, 1);
} else if(C == CDASH) {
/* Maintain current state, still waiting for '>' */
} else { } else {
state = ST_COMMENT; state = ST_COMMENT;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment