summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-25 13:21:11 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-25 13:21:11 +0000
commit5a2abb5987f4eab9d1ca06bb558b17494fa7974f (patch)
tree6f09c26f9e270ea793a3486b9863a4702b3b8d52 /src/html/html_collection.c
parent1d120d71d279b19e44ba883aa4d0077dc00a86be (diff)
downloadlibdom-5a2abb5987f4eab9d1ca06bb558b17494fa7974f.tar.gz
libdom-5a2abb5987f4eab9d1ca06bb558b17494fa7974f.tar.bz2
Squash scan-build issues
svn path=/trunk/libdom/; revision=13686
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;