aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit956777a901ad57251d9ebe5bd44ca080923e9f28 (patch)
tree108b1ad731222a4e46565b58095c7d5b5c57843a /mandocdb.c
parentb592b1fad090579dfdb5cb6c1acdb8fcdc987c61 (diff)
downloadmandoc-956777a901ad57251d9ebe5bd44ca080923e9f28.tar.gz
mandoc-956777a901ad57251d9ebe5bd44ca080923e9f28.tar.zst
mandoc-956777a901ad57251d9ebe5bd44ca080923e9f28.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 39f92539..ead0749a 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.61 2013/06/05 21:21:08 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.62 2013/06/06 02:40:37 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;