diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-06 02:40:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-06 02:40:37 +0000 |
commit | 956777a901ad57251d9ebe5bd44ca080923e9f28 (patch) | |
tree | 108b1ad731222a4e46565b58095c7d5b5c57843a | |
parent | b592b1fad090579dfdb5cb6c1acdb8fcdc987c61 (diff) | |
download | mandoc-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.
-rw-r--r-- | mandocdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |