aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makewhatis.c
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
commitbe592fa5c6fb8d29d7c83639eb53888ef64cb498 (patch)
tree4c0fef3589e9977d6d61e61eda61e61fe6654f52 /makewhatis.c
parent18796304f4f56bfb405d7b579eb9da2a7b547395 (diff)
downloadmandoc-be592fa5c6fb8d29d7c83639eb53888ef64cb498.tar.gz
mandoc-be592fa5c6fb8d29d7c83639eb53888ef64cb498.tar.zst
mandoc-be592fa5c6fb8d29d7c83639eb53888ef64cb498.zip
Make sure hash is initialised to NULL and remove an unused variable.
Diffstat (limited to 'makewhatis.c')
-rw-r--r--makewhatis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/makewhatis.c b/makewhatis.c
index 122f5f8f..3161ba19 100644
--- a/makewhatis.c
+++ b/makewhatis.c
@@ -1,4 +1,4 @@
-/* $Id: makewhatis.c,v 1.8 2011/06/22 09:00:14 kristaps Exp $ */
+/* $Id: makewhatis.c,v 1.9 2011/06/22 09:10:36 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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));