summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index 1bca859..2243e08 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -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);
}