X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fxml.c;h=142c1a91a6f4d9f20dba78454a56ba66c6e6d906;hb=f802a70821430f2be4f496c09bcc15ada34e6056;hp=6afede981d05d9649a9699e80b8eb31a3bcf0f2d;hpb=7a66a5903a8c2227b9341a6486e4c2ea989fb5bd;p=wimlib diff --git a/src/xml.c b/src/xml.c index 6afede98..142c1a91 100644 --- 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);