From: Ingo Schwarze Date: Fri, 3 Mar 2017 13:41:42 +0000 (+0000) Subject: Fix a copy-and-paste error that caused man(7) manuals without X-Git-Tag: VERSION_1_14_2~267 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/d8e03f2c2672f6af5f40b99b8717712278692607 Fix a copy-and-paste error that caused man(7) manuals without a section number in .TH to be misinterpreted as preformatted. Found by jsg@ with cppcheck. --- diff --git a/mandocdb.c b/mandocdb.c index 3b26ca96..3a1be800 100644 --- a/mandocdb.c +++ b/mandocdb.c @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.244 2017/02/17 14:45:55 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.245 2017/03/03 13:41:42 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011-2017 Ingo Schwarze @@ -1211,7 +1211,7 @@ mpages_merge(struct dba *dba, struct mparse *mp) } else if (man != NULL && man->macroset == MACROSET_MAN) { man_validate(man); if (*man->meta.msec != '\0' || - *man->meta.msec != '\0') { + *man->meta.title != '\0') { mpage->form = FORM_SRC; mpage->sec = mandoc_strdup(man->meta.msec); mpage->arch = mandoc_strdup(mlink->arch);