summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r--src/html/html_collection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/html/html_collection.c b/src/html/html_collection.c
index ec96e66..7532742 100644
--- a/src/html/html_collection.c
+++ b/src/html/html_collection.c
@@ -209,8 +209,10 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col,
{
struct dom_node_internal *n = col->root;
dom_exception err;
-
- while (node != NULL) {
+
+ while (*node != NULL) {
+ assert(n != NULL);
+
if (n->type == DOM_ELEMENT_NODE && col->ic(n) == true) {
dom_string *id = NULL;