diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-25 13:21:11 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-25 13:21:11 +0000 |
commit | 5a2abb5987f4eab9d1ca06bb558b17494fa7974f (patch) | |
tree | 6f09c26f9e270ea793a3486b9863a4702b3b8d52 /src/html | |
parent | 1d120d71d279b19e44ba883aa4d0077dc00a86be (diff) | |
download | libdom-5a2abb5987f4eab9d1ca06bb558b17494fa7974f.tar.gz libdom-5a2abb5987f4eab9d1ca06bb558b17494fa7974f.tar.bz2 |
Squash scan-build issues
svn path=/trunk/libdom/; revision=13686
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/html_collection.c | 6 |
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; |