From be592fa5c6fb8d29d7c83639eb53888ef64cb498 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 | 6 +++--- 1 file 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 * @@ -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 v1.2.3-56-ge451