summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2006-06-08 10:59:26 +0200
committerMike Hommey <glandium@debian.org>2006-06-08 10:59:26 +0200
commita7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (patch)
treef70d9afbc2bc584860755cb0f933a4405ee3c338 /encoding.c
parent07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e (diff)
downloadlibxml2-a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae.tar.gz
Load /tmp/libxml2-2.6.26 intoupstream/2.6.26.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index dc1c205..6dee212 100644
--- a/encoding.c
+++ b/encoding.c
@@ -2083,7 +2083,8 @@ retry:
xmlEncodingErr(XML_I18N_CONV_FAILED,
"output conversion failed due to conv error, bytes %s\n",
buf);
- in->content[0] = ' ';
+ if (in->alloc != XML_BUFFER_ALLOC_IMMUTABLE)
+ in->content[0] = ' ';
}
break;
}