From 5a2abb5987f4eab9d1ca06bb558b17494fa7974f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 25 Mar 2012 13:21:11 +0000 Subject: Squash scan-build issues svn path=/trunk/libdom/; revision=13686 --- src/html/html_collection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/html/html_collection.c') 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; -- cgit v1.2.3