]> git.cameronkatri.com Git - mandoc.git/commitdiff
Fix 1.125: Add missing return in termp_nm_pre.
authorJoerg Sonnenberger <joerg@netbsd.org>
Sat, 22 May 2010 20:41:48 +0000 (20:41 +0000)
committerJoerg Sonnenberger <joerg@netbsd.org>
Sat, 22 May 2010 20:41:48 +0000 (20:41 +0000)
mdoc_term.c

index d11e36e0c6bcc91894052782330655bd342cb54e..9410741bf57f49664ee3dd0b233ee2df8b1d1ad8 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_term.c,v 1.126 2010/05/17 23:57:06 kristaps Exp $ */
+/*     $Id: mdoc_term.c,v 1.127 2010/05/22 20:41:48 joerg Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *
@@ -1044,6 +1044,7 @@ termp_nm_pre(DECL_ARGS)
 {
 
        if (NULL == n->child && NULL == m->name)
+               return(1);
 
        if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags)
                term_newln(p);