summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makewhatis.c5
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);
}
}