1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Assert parsing depth >= parser stack depth

Like the comment says popping parsing nodes during incremental parsing
might trigger this.
This commit is contained in:
Jonas Fonseca 2006-01-28 01:12:03 +01:00 committed by Jonas Fonseca
parent 9e7b0d4fa3
commit c6e83d1d9c

View File

@ -522,7 +522,7 @@ sgml_parsing_pop(struct dom_stack *stack, struct dom_node *node, void *data)
}
/* It's bigger than when calling done_sgml_parser() in the middle of an
* incomplete parsing. */
assert(parsing->depth == parser->stack.depth);
assert(parsing->depth >= parser->stack.depth);
}
done_dom_string(&parsing->incomplete);