summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-12-31 00:09:44 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2012-12-31 00:09:44 (GMT)
commit9508d0205519b6f4bc7901d5cfe260d9860bca87 (patch)
treef6ea129972a01829f9b178b52ef78860a8bff90e
parent8051772672c6cae6e00847f396cea6f7e3f43f3b (diff)
downloadlibdom-9508d0205519b6f4bc7901d5cfe260d9860bca87.tar.gz
libdom-9508d0205519b6f4bc7901d5cfe260d9860bca87.tar.bz2
Initialise *ret
-rw-r--r--src/core/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/text.c b/src/core/text.c
index e84972a..0bf6322 100644
--- a/src/core/text.c
+++ b/src/core/text.c
@@ -470,6 +470,8 @@ dom_exception walk_logic_adjacent_text(dom_text *text,
return DOM_NOT_SUPPORTED_ERR;
}
+ *ret = NULL;
+
/* Firstly, we look our left */
err = walk_logic_adjacent_text_in_order(left, opt, LEFT, ret, &cont);
if (err != DOM_NO_ERR) {