diff options
Diffstat (limited to 'libmdocml.c')
-rw-r--r-- | libmdocml.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmdocml.c b/libmdocml.c index 3b7b67f2..06c9266c 100644 --- a/libmdocml.c +++ b/libmdocml.c @@ -85,6 +85,8 @@ static int md_buf_flush(struct md_mbuf *buf) int md_buf_putchar(struct md_mbuf *buf, char c) { + + assert(buf); return(md_buf_puts(buf, &c, 1)); } @@ -92,6 +94,8 @@ md_buf_putchar(struct md_mbuf *buf, char c) int md_buf_putstring(struct md_mbuf *buf, const char *p) { + + assert(buf); return(md_buf_puts(buf, p, strlen(p))); } @@ -207,7 +211,7 @@ again: } line[pos] = 0; - if ( ! (*fp)(p, line, pos)) + if ( ! (*fp)(p, line)) return(md_run_leave(args, mbuf, rbuf, -1, p)); rbuf->line++; pos = 0; |