lasso/xml/tools.c: fix reference to unitialized memory

This commit is contained in:
Benjamin Dauvergne 2014-04-24 12:31:13 +02:00
parent 7e6c7bf3f0
commit 6d854cef42
1 changed files with 1 additions and 1 deletions

View File

@ -2461,7 +2461,7 @@ get_or_define_ns(xmlNode *xmlnode, const xmlChar *ns_uri, const xmlChar *advised
return ns;
/* Try with the advised prefix */
if (advised_prefix) {
ns = xmlSearchNs(NULL, xmlnode, BAD_CAST prefix);
ns = xmlSearchNs(NULL, xmlnode, BAD_CAST advised_prefix);
if (! ns) { /* If not taken, use it */
return xmlNewNs(xmlnode, ns_uri, BAD_CAST advised_prefix);
}