summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-04-24 10:31:13 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-04-24 10:32:43 (GMT)
commit6d854cef4211cdcdbc7446c978f23ab859847cdd (patch)
tree57d1df8a126c18bedd94714c87cbc0a267fef9f6 /lasso/xml
parent7e6c7bf3f0fee1071c0cb3b3f3dd0076c4fc2d3f (diff)
downloadlasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.zip
lasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.tar.gz
lasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.tar.bz2
lasso/xml/tools.c: fix reference to unitialized memory
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);
}