summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-09-19 14:06:09 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-09-19 14:06:09 +0100
commit8f4fd70667b34dc499e3ac8543a6cb3852eae2fc (patch)
treed43a13ad6c765c00ff32759d5995d460afad54d2 /src/html/html_collection.c
parent7dbf02c5cef37edeefd89bc23de49c22ce3e2e7f (diff)
parentdb03d00ad34c4b888e5cf3034411388900f4858e (diff)
downloadlibdom-8f4fd70667b34dc499e3ac8543a6cb3852eae2fc.tar.gz
libdom-8f4fd70667b34dc499e3ac8543a6cb3852eae2fc.tar.bz2
Merge branch 'tlsa/selectstuff'
Conflicts: include/dom/html/html_select_element.h src/html/html_select_element.c src/html/html_select_element.h
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r--src/html/html_collection.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_collection.c b/src/html/html_collection.c
index 704d384..a99297f 100644
--- a/src/html/html_collection.c
+++ b/src/html/html_collection.c
@@ -214,9 +214,7 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col,
struct dom_node_internal *n = col->root;
dom_exception err;
- while (*node != NULL) {
- assert(n != NULL);
-
+ while (n != NULL) {
if (n->type == DOM_ELEMENT_NODE &&
col->ic(n, col->ctx) == true) {
dom_string *id = NULL;