summaryrefslogtreecommitdiffstats
path: root/libmdocml.c
diff options
context:
space:
mode:
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);