From 447585d028eb275b5f6eb1cea8627a01a64886eb Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 1 Sep 2014 10:59:21 +0200 Subject: gcc2 fixes. --- src/html/html_collection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html/html_collection.c') diff --git a/src/html/html_collection.c b/src/html/html_collection.c index 43a26c5..90e35a0 100644 --- a/src/html/html_collection.c +++ b/src/html/html_collection.c @@ -219,6 +219,7 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col, if (n->type == DOM_ELEMENT_NODE && col->ic(n, col->ctx) == true) { dom_string *id = NULL; + dom_string *id_name = NULL; err = _dom_element_get_id((struct dom_element *) n, &id); @@ -238,7 +239,6 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col, dom_string_unref(id); /* Check for Name attr if id not matched/found */ - dom_string *id_name = NULL; err = _dom_element_get_attribute((dom_element *)n, doc->memoised[hds_name], &id_name); if(err != DOM_NO_ERR) { -- cgit v1.2.3