summaryrefslogtreecommitdiff
path: root/src/html/html_tablesection_element.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-08-07 10:04:53 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-08-07 10:06:11 +0100
commit081c488176a3c50521bbc6faa26351f76631420c (patch)
tree86d5f74655d114a816590bd2f154d367e27796b2 /src/html/html_tablesection_element.c
parent0a10aeb104d3595def8cfca607abf0babda13c00 (diff)
downloadlibdom-081c488176a3c50521bbc6faa26351f76631420c.tar.gz
libdom-081c488176a3c50521bbc6faa26351f76631420c.tar.bz2
Attempt to appease m68k CI cross-compiler.
Diffstat (limited to 'src/html/html_tablesection_element.c')
-rw-r--r--src/html/html_tablesection_element.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/html/html_tablesection_element.c b/src/html/html_tablesection_element.c
index 6499b72..e2cd3dd 100644
--- a/src/html/html_tablesection_element.c
+++ b/src/html/html_tablesection_element.c
@@ -235,7 +235,7 @@ dom_exception dom_html_table_section_element_insert_row(
dom_html_collection *rows; /*< The collection of rows in input table_section_element*/
uint32_t len; /*< The size of the row collection */
dom_exception exp; /*< Variable for getting the exceptions*/
- dom_node *new_node;
+ dom_html_table_row_element *new_node;
struct dom_html_element_create_params params = {
.type = DOM_HTML_ELEMENT_TYPE_TR,
@@ -253,14 +253,12 @@ dom_exception dom_html_table_section_element_insert_row(
exp = dom_html_table_section_element_get_rows(element, &rows);
if(exp != DOM_NO_ERR) {
dom_node_unref(new_node);
- new_node = NULL;
return exp;
}
exp = dom_html_collection_get_length(rows, &len);
if (exp != DOM_NO_ERR) {
dom_node_unref(new_node);
- new_node = NULL;
dom_html_collection_unref(rows);
return exp;
}
@@ -269,7 +267,6 @@ dom_exception dom_html_table_section_element_insert_row(
/* Check for index validity */
dom_html_collection_unref(rows);
dom_node_unref(new_node);
- new_node = NULL;
return DOM_INDEX_SIZE_ERR;
} else if (index == -1 || index == (int32_t)len) {
@@ -286,7 +283,6 @@ dom_exception dom_html_table_section_element_insert_row(
}
dom_node_unref(new_node);
- new_node = NULL;
return exp;
}