* mdocml: Allow empty `Fo' to get by without an assertion.
@ 2010-07-03 17:17 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-07-03 17:17 UTC (permalink / raw)
To: source
Log Message:
-----------
Allow empty `Fo' to get by without an assertion.
Modified Files:
--------------
mdocml:
mdoc_term.c
Revision Data
-------------
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.168 -r1.169
--- mdoc_term.c
+++ mdoc_term.c
@@ -2012,9 +2012,11 @@ termp_fo_pre(DECL_ARGS)
return(1);
}
+ if (NULL == n->child)
+ return(0);
+
/* XXX: we drop non-initial arguments as per groff. */
- assert(n->child);
assert(n->child->string);
term_fontpush(p, TERMFONT_BOLD);
term_word(p, n->child->string);
--
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:[~2010-07-03 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-03 17:17 mdocml: Allow empty `Fo' to get by without an assertion 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).