From cddabf4481def808a91c9b24836ff80880d10594 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 17 Aug 2016 20:46:56 +0000 Subject: 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. --- dba.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dba.h') diff --git a/dba.h b/dba.h index 6715472d..67a2759a 100644 --- a/dba.h +++ b/dba.h @@ -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 * @@ -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); -- cgit v1.2.3-56-ge451