From 0beed49caa05269677d9115b20d0991af8a70406 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 22 Jun 2011 09:10:36 +0000 Subject: Make sure hash is initialised to NULL and remove an unused variable. --- makewhatis.c | 4 ++-- 1 file 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)); -- cgit