summaryrefslogtreecommitdiffstats
path: root/libmdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:10:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:10:37 +0000
commit0d055120de349c30f0ceb537d57f8694f67397da (patch)
tree6909226bceaa9d9affdfc9845b27a40c83ef76f3 /libmdocml.c
parentfcccec27b02c05557ea3cad60051abb8ca5a2e62 (diff)
downloadmandoc-0d055120de349c30f0ceb537d57f8694f67397da.tar.gz
Improvements to the xml part.
Diffstat (limited to 'libmdocml.c')
-rw-r--r--libmdocml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmdocml.c b/libmdocml.c
index a10519bd..7cf6c079 100644
--- a/libmdocml.c
+++ b/libmdocml.c
@@ -150,7 +150,7 @@ md_run_leave(const struct md_args *args, struct md_mbuf *mbuf,
}
/* Make final flush of buffer. */
- if ( ! md_buf_flush(mbuf))
+ if (-1 != c && ! md_buf_flush(mbuf))
return(-1);
return(c);