]> wimlib.net Git - wimlib/blobdiff - src/xml.c
Misc fixes
[wimlib] / src / xml.c
index 6afede981d05d9649a9699e80b8eb31a3bcf0f2d..142c1a91a6f4d9f20dba78454a56ba66c6e6d906 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -259,6 +259,9 @@ node_get_string(const xmlNode *string_node, tchar **tstr_ret)
        tchar *tstr = NULL;
        int ret;
 
+       if (*tstr_ret)
+               return 0;
+
        for_node_child(string_node, child) {
                if (node_is_text(child) && child->content) {
                        ret = utf8_to_tstr_simple(child->content, &tstr);