diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-10 13:03:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-10 13:03:31 +0000 |
commit | 87f1c6005139dcbfc2038948eaedea4ee95f8a24 (patch) | |
tree | 02b40520a21a775030f201465c5360635d53bd3f /makewhatis.c | |
parent | 7cd61f4a3e003de9d4563ef3baffa166510959d1 (diff) | |
download | mandoc-87f1c6005139dcbfc2038948eaedea4ee95f8a24.tar.gz |
Have descriptions for -man documents in makewhatis be properly collected.
Diffstat (limited to 'makewhatis.c')
-rw-r--r-- | makewhatis.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makewhatis.c b/makewhatis.c index 9a06783c..8ed68905 100644 --- a/makewhatis.c +++ b/makewhatis.c @@ -961,8 +961,9 @@ pman_node(MAN_ARGS) start++; } + buf->len = 0; + if (sv == start) { - buf->len = 0; buf_append(buf, start); return(1); } @@ -985,6 +986,8 @@ pman_node(MAN_ARGS) sz = strlen(start) + 1; buf_appendb(dbuf, start, sz); buf_appendb(buf, start, sz); + + hash_put(hash, buf, TYPE_DESC); } } |