aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-11-25 00:48:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-11-25 00:48:47 +0000
commit58770e762eb287d41b38e7e2abf156d3a9e913f4 (patch)
treeb468903d54817ccbce353b754615af9bdfed8171 /xmlIO.c
parentf62ceffb7e538bf78894d2e2192848fdb40fe278 (diff)
downloadandroid_external_libxml2-58770e762eb287d41b38e7e2abf156d3a9e913f4.tar.gz
android_external_libxml2-58770e762eb287d41b38e7e2abf156d3a9e913f4.tar.bz2
android_external_libxml2-58770e762eb287d41b38e7e2abf156d3a9e913f4.zip
Fixes/enhancements: - tree.[ch] xmlIO.c: added xmlDocDumpMemoryEnc() from
Fixes/enhancements: - tree.[ch] xmlIO.c: added xmlDocDumpMemoryEnc() from John Kroll - error.c: applied fix suggested by "Leo Davidson" <leo@ox.compsoc.net> Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlIO.c b/xmlIO.c
index 31cd9133..dec8694d 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -836,7 +836,8 @@ xmlOutputBufferClose(xmlOutputBufferPtr out) {
if (out == NULL)
return(-1);
- xmlOutputBufferFlush(out);
+ if (out->writecallback != NULL)
+ xmlOutputBufferFlush(out);
if (out->closecallback != NULL) {
out->closecallback(out->context);
}