summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-06 02:40:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-06 02:40:37 +0000
commit4c8e38c971341b397721f565e4dae22d4bf19a48 (patch)
tree3e3775330b6ebd493096d881b32432835ed5f597 /mandocdb.c
parent92044c46d88e37285b76bfb4a56d9f63b52bd377 (diff)
downloadmandoc-4c8e38c971341b397721f565e4dae22d4bf19a48.tar.gz
In parse_catpage(), the comment saying that the filename would be
used as a default page description if no usable NAME section was found was preserved when moving from db to sqlite, but the code line actually doing that was removed without replacement. So, put it back.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 025c28ab..6a6857ea 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1101,6 +1101,7 @@ parse_catpage(struct of *of)
if (NULL == title || '\0' == *title) {
if (warnings)
say(of->file, "Cannot find NAME section");
+ putkey(of, of->name, TYPE_Nd);
fclose(stream);
free(title);
return;