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
commit2da3eed0601f392a810753b152055f6ddea18111 (patch)
tree6f09c26f9e270ea793a3486b9863a4702b3b8d52 /src/html/html_collection.c
parent9a2c16fcbc08558f993d11b2bcb23d4b98f696a4 (diff)
downloadlibdom-2da3eed0601f392a810753b152055f6ddea18111.tar.gz
libdom-2da3eed0601f392a810753b152055f6ddea18111.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;