summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-02-04 16:01:06 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-02-04 16:01:06 (GMT)
commit68684b13e888b1be4aa9c2c5d47da85ac5351223 (patch)
tree42142b1c965fbb3ee1847dfc8240854cef9d4d25
parent6ed9fdd840fc6619e40833d1421c6f6b9ee9816e (diff)
downloadlibnslayout-68684b13e888b1be4aa9c2c5d47da85ac5351223.tar.gz
libnslayout-68684b13e888b1be4aa9c2c5d47da85ac5351223.tar.bz2
util dom-str: Ensure correct propagation of dom string create error.
-rw-r--r--src/util/dom-str.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/dom-str.c b/src/util/dom-str.c
index c108620..73bfe63 100644
--- a/src/util/dom-str.c
+++ b/src/util/dom-str.c
@@ -62,8 +62,7 @@ out:
if (exc != DOM_NO_ERR) {
printf("Failed to initialise dom_str!\n");
nsl_dom_str_fini();
- /* TODO: return value */
- err = NSLAYOUT_NO_MEM;
+ err = NSL_DOM_ERR(exc);
}
return err;