* mdocml: Fix a copy-and-paste error that caused man(7) manuals without a
@ 2017-03-03 13:42 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-03-03 13:42 UTC (permalink / raw)
To: source
Log Message:
-----------
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.
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.244
retrieving revision 1.245
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.244 -r1.245
--- mandocdb.c
+++ mandocdb.c
@@ -1211,7 +1211,7 @@ mpages_merge(struct dba *dba, struct mpa
} 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);
--
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:[~2017-03-03 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03 13:42 mdocml: Fix a copy-and-paste error that caused man(7) manuals without a schwarze
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).