diff options
author | 2011-03-31 10:54:39 +0000 | |
---|---|---|
committer | 2011-03-31 10:54:39 +0000 | |
commit | 259a140ad2b7e8697c1dc7de7e53c2353fedc8c7 (patch) | |
tree | 7833f065b1834b54ec9d36c9c0de9fe1238c52be | |
parent | f8f1928d0b7dc342d3d040c9098b00dc5e6c82c9 (diff) | |
download | mandoc-259a140ad2b7e8697c1dc7de7e53c2353fedc8c7.tar.gz mandoc-259a140ad2b7e8697c1dc7de7e53c2353fedc8c7.tar.zst mandoc-259a140ad2b7e8697c1dc7de7e53c2353fedc8c7.zip |
Allow a NULL mmsg passed to libmandoc.
-rw-r--r-- | read.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.7 2011/03/28 21:49:42 kristaps Exp $ */ +/* $Id: read.c,v 1.8 2011/03/31 10:54:39 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |