summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-06-22 09:10:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-06-22 09:10:36 +0000
commit0beed49caa05269677d9115b20d0991af8a70406 (patch)
treea51d894a61ffdd2e1efea1d582e77cf616561b32
parent5044bcecea06e3f7270ba8a751e95bd8b209d957 (diff)
downloadmandoc-0beed49caa05269677d9115b20d0991af8a70406.tar.gz
Make sure hash is initialised to NULL and remove an unused variable.
-rw-r--r--makewhatis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/makewhatis.c b/makewhatis.c
index 60b32589..707b955c 100644
--- a/makewhatis.c
+++ b/makewhatis.c
@@ -241,7 +241,7 @@ main(int argc, char *argv[])
*db, /* keyword database */
*hash; /* temporary keyword hashtable */
DBT key, val;
- size_t sv, rsz;
+ size_t sv;
BTREEINFO info; /* btree configuration */
recno_t rec; /* current record number */
struct buf buf, /* keyword buffer */
@@ -335,7 +335,7 @@ main(int argc, char *argv[])
mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL);
rec = 1;
- rsz = 0;
+ hash = NULL;
memset(&buf, 0, sizeof(struct buf));
memset(&dbuf, 0, sizeof(struct buf));