* mdocml: Allow mparse_result() pointers to be NULL.
@ 2011-04-03 10:05 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-03 10:05 UTC (permalink / raw)
To: source
Log Message:
-----------
Allow mparse_result() pointers to be NULL.
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.8
retrieving revision 1.9
diff -Lread.c -Lread.c -u -p -r1.8 -r1.9
--- read.c
+++ read.c
@@ -709,8 +709,10 @@ void
mparse_result(struct mparse *curp, struct mdoc **mdoc, struct man **man)
{
- *mdoc = curp->mdoc;
- *man = curp->man;
+ if (mdoc)
+ *mdoc = curp->mdoc;
+ if (man)
+ *man = curp->man;
}
void
--
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-04-03 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-03 10:05 mdocml: Allow mparse_result() pointers to be NULL 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).