diff options
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r-- | src/html/html_collection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_collection.c b/src/html/html_collection.c index 704d384..a99297f 100644 --- a/src/html/html_collection.c +++ b/src/html/html_collection.c @@ -214,9 +214,7 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col, struct dom_node_internal *n = col->root; dom_exception err; - while (*node != NULL) { - assert(n != NULL); - + while (n != NULL) { if (n->type == DOM_ELEMENT_NODE && col->ic(n, col->ctx) == true) { dom_string *id = NULL; |