Skip to content
Snippets Groups Projects
Commit 99368663c4a6 authored by Martin's avatar Martin
Browse files

Avoid an error in namespace generation

* libxslt/namespaces.c: fix xsltGetSpecialNamespace fallback with
  uninitialized prefix string
parent 6f9ad1a04ade
No related branches found
No related tags found
No related merge requests found
......@@ -584,6 +584,10 @@
xmlChar pref[30];
int counter = 1;
if (nsPrefix == NULL) {
nsPrefix = "ns";
}
do {
snprintf((char *) pref, 30, "%s_%d", nsPrefix, counter++);
ns = xmlSearchNs(target->doc, target, BAD_CAST pref);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment