diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-31 10:54:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-31 10:54:39 +0000 |
commit | f0962178f803a13106e8714b7d1b1940e38083d5 (patch) | |
tree | 4a6ef78c1a852483106bbb60d68a8f373f624266 /read.c | |
parent | dad21424d313db36275c9afb45d655b5c41ca9d9 (diff) | |
download | mandoc-f0962178f803a13106e8714b7d1b1940e38083d5.tar.gz |
Allow a NULL mmsg passed to libmandoc.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -740,7 +740,8 @@ mandoc_msg(enum mandocerr er, struct mparse *m, if (level < m->wlevel) return; - (*m->mmsg)(er, level, m->file, ln, col, msg); + if (m->mmsg) + (*m->mmsg)(er, level, m->file, ln, col, msg); if (m->file_status < level) m->file_status = level; |