diff options
author | 2017-03-03 13:41:42 +0000 | |
---|---|---|
committer | 2017-03-03 13:41:42 +0000 | |
commit | d8e03f2c2672f6af5f40b99b8717712278692607 (patch) | |
tree | 6f7b86f4950151741d0fa47c7754880fb2163e86 /mandocdb.c | |
parent | a86259b51b74480e80c3daacead5b638d4cf0206 (diff) | |
download | mandoc-d8e03f2c2672f6af5f40b99b8717712278692607.tar.gz mandoc-d8e03f2c2672f6af5f40b99b8717712278692607.tar.zst mandoc-d8e03f2c2672f6af5f40b99b8717712278692607.zip |
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.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |