Chromium Code Reviews| Index: third_party/libxslt/libxslt/namespaces.c |
| =================================================================== |
| --- third_party/libxslt/libxslt/namespaces.c (revision 39981) |
| +++ third_party/libxslt/libxslt/namespaces.c (working copy) |
| @@ -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); |