aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--makewhatis.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/makewhatis.c b/makewhatis.c
index 9ed8509d..6356703f 100644
--- a/makewhatis.c
+++ b/makewhatis.c
@@ -1,4 +1,4 @@
-/* $Id: makewhatis.c,v 1.16 2011/07/01 13:46:39 kristaps Exp $ */
+/* $Id: makewhatis.c,v 1.17 2011/07/10 13:03:31 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);
}
}