From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p5M9Aab5011693 for ; Wed, 22 Jun 2011 05:10:36 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p5M9Aa0A028036; Wed, 22 Jun 2011 05:10:36 -0400 (EDT) Date: Wed, 22 Jun 2011 05:10:36 -0400 (EDT) Message-Id: <201106220910.p5M9Aa0A028036@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make sure hash is initialised to NULL and remove an unused X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Make sure hash is initialised to NULL and remove an unused variable. Modified Files: -------------- mdocml: makewhatis.c Revision Data ------------- Index: makewhatis.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/makewhatis.c,v retrieving revision 1.8 retrieving revision 1.9 diff -Lmakewhatis.c -Lmakewhatis.c -u -p -r1.8 -r1.9 --- makewhatis.c +++ 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)); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv