diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-17 20:46:56 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-17 20:46:56 +0000 |
commit | cddabf4481def808a91c9b24836ff80880d10594 (patch) | |
tree | d88818c33a80dd1f73ed529d56f2d377b63cd2c5 /dba.h | |
parent | 58f7533c9f4a757e9db71039330750a0b958f008 (diff) | |
download | mandoc-cddabf4481def808a91c9b24836ff80880d10594.tar.gz mandoc-cddabf4481def808a91c9b24836ff80880d10594.tar.zst mandoc-cddabf4481def808a91c9b24836ff80880d10594.zip |
When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database
format slightly and causing the page to not be considered part of
any section, not even if a section could be deduced from the directory
or from the file name.
Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
Diffstat (limited to 'dba.h')
-rw-r--r-- | dba.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: dba.h,v 1.1 2016/07/19 21:31:55 schwarze Exp $ */ +/* $Id: dba.h,v 1.2 2016/08/17 20:46:56 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> * @@ -40,8 +40,7 @@ struct dba *dba_read(const char *); int dba_write(const char *, struct dba *); struct dba_array *dba_page_new(struct dba_array *, const char *, - const char *, const char *, const char *, - const char *, enum form); + const char *, const char *, enum form); void dba_page_add(struct dba_array *, int32_t, const char *); void dba_page_alias(struct dba_array *, const char *, uint64_t); |