* mdocml: Allow a NULL mmsg passed to libmandoc.
@ 2011-03-31 10:54 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-03-31 10:54 UTC (permalink / raw)
To: source
Log Message:
-----------
Allow a NULL mmsg passed to libmandoc.
Modified Files:
--------------
mdocml:
read.c
Revision Data
-------------
Index: read.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/read.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -Lread.c -Lread.c -u -p -r1.7 -r1.8
--- read.c
+++ read.c
@@ -740,7 +740,8 @@ mandoc_msg(enum mandocerr er, struct mpa
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;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-31 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 10:54 mdocml: Allow a NULL mmsg passed to libmandoc kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).