From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Make sure hash is initialised to NULL and remove an unused
Date: Wed, 22 Jun 2011 05:10:36 -0400 (EDT) [thread overview]
Message-ID: <201106220910.p5M9Aa0A028036@krisdoz.my.domain> (raw)
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
reply other threads:[~2011-06-22 9:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201106220910.p5M9Aa0A028036@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).