diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2014-04-24 12:31:13 +0200 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2014-04-24 12:32:43 +0200 |
| commit | 6d854cef4211cdcdbc7446c978f23ab859847cdd (patch) | |
| tree | 57d1df8a126c18bedd94714c87cbc0a267fef9f6 | |
| parent | 7e6c7bf3f0fee1071c0cb3b3f3dd0076c4fc2d3f (diff) | |
| download | lasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.tar.gz lasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.tar.xz lasso-6d854cef4211cdcdbc7446c978f23ab859847cdd.zip | |
lasso/xml/tools.c: fix reference to unitialized memory
| -rw-r--r-- | lasso/xml/tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 1bca8597..2243e083 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); } |
