* mdocml: Convert an assert into an explicit check.
@ 2011-11-18 16:39 joerg
0 siblings, 0 replies; only message in thread
From: joerg @ 2011-11-18 16:39 UTC (permalink / raw)
To: source
Log Message:
-----------
Convert an assert into an explicit check. man_unscope can be triggered
on unknown macros.
Modified Files:
--------------
mdocml:
man_macro.c
Revision Data
-------------
Index: man_macro.c
===================================================================
RCS file: /home/joerg/cvsroot/mdocml/man_macro.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -Lman_macro.c -Lman_macro.c -u -p -r1.66 -r1.67
--- man_macro.c
+++ man_macro.c
@@ -120,7 +120,8 @@ man_unscope(struct man *m, const struct
assert(to);
- assert(MAN_ROOT != m->last->type);
+ if (MAN_ROOT != m->last->type)
+ return(0);
m->next = MAN_NEXT_SIBLING;
/* LINTED */
--
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-11-18 16:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-18 16:39 mdocml: Convert an assert into an explicit check joerg
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).