summaryrefslogtreecommitdiff
path: root/c14n.c
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2014-10-26 07:02:36 +0800
committerAron Xu <aron@debian.org>2014-10-26 07:02:36 +0800
commitd5776bbf9d8842d931ab1112466d19685035281e (patch)
tree01338d35684154e4f1c17acb1d92d3fa85c26508 /c14n.c
parent3a8c2d58eab0410fe5e79a112614aa9be061dc46 (diff)
parent3871a83a5f0aebd8c00879eab14fe901c93dbfcf (diff)
downloadlibxml2-d5776bbf9d8842d931ab1112466d19685035281e.tar.gz
Merge tag 'upstream/2.9.2+dfsg1'
Upstream version 2.9.2+dfsg1
Diffstat (limited to 'c14n.c')
-rw-r--r--c14n.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/c14n.c b/c14n.c
index afd95b3..ca77f92 100644
--- a/c14n.c
+++ b/c14n.c
@@ -547,14 +547,15 @@ xmlC14NPrintNamespaces(const xmlNsPtr ns, xmlC14NCtxPtr ctx)
if (ns->prefix != NULL) {
xmlOutputBufferWriteString(ctx->buf, " xmlns:");
xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix);
- xmlOutputBufferWriteString(ctx->buf, "=\"");
+ xmlOutputBufferWriteString(ctx->buf, "=");
} else {
- xmlOutputBufferWriteString(ctx->buf, " xmlns=\"");
+ xmlOutputBufferWriteString(ctx->buf, " xmlns=");
}
if(ns->href != NULL) {
- xmlOutputBufferWriteString(ctx->buf, (const char *) ns->href);
+ xmlBufWriteQuotedString(ctx->buf->buffer, ns->href);
+ } else {
+ xmlOutputBufferWriteString(ctx->buf, "\"\"");
}
- xmlOutputBufferWriteString(ctx->buf, "\"");
return (1);
}