summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
authorAdrien Destugues <pulkomandy@pulkomandy.tk>2014-09-01 10:59:21 +0200
committerVincent Sanders <vince@kyllikki.org>2015-03-21 23:36:24 +0000
commit447585d028eb275b5f6eb1cea8627a01a64886eb (patch)
treeb00d1bf73b3b195c285870a955b65bbbb753ffd5 /src/html/html_collection.c
parent6b7c383e79e9b26478d1aeb1495af327f31c4e9f (diff)
downloadlibdom-447585d028eb275b5f6eb1cea8627a01a64886eb.tar.gz
libdom-447585d028eb275b5f6eb1cea8627a01a64886eb.tar.bz2
gcc2 fixes.
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r--src/html/html_collection.c2
1 files changed, 1 insertions, 1 deletions
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) {