diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-12 10:03:02 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-12 10:03:02 +0000 |
commit | 2ad142d1d4a163536ab2be152e509f2890dd21c2 (patch) | |
tree | 86960fff516be60f951a6425f097521137d6a40b | |
parent | 1ba5c0b954439f4eb49d3eb87e3a70fc8e52f177 (diff) | |
download | mandoc-2ad142d1d4a163536ab2be152e509f2890dd21c2.tar.gz |
Fixed some uninitialised values found during lint check.
-rw-r--r-- | makewhatis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/makewhatis.c b/makewhatis.c index a019737f..49455828 100644 --- a/makewhatis.c +++ b/makewhatis.c @@ -262,7 +262,7 @@ main(int argc, char *argv[]) *db, /* keyword database */ *hash; /* temporary keyword hashtable */ DBT key, val; - enum mandocerr ec; + enum mandoclevel ec; size_t sv; BTREEINFO info; /* btree configuration */ recno_t rec, /* current record number */ @@ -287,6 +287,7 @@ main(int argc, char *argv[]) hash = NULL; recs = NULL; recsz = 0; + maxrec = 0; op = OP_NEW; ec = MANDOCLEVEL_SYSERR; @@ -398,8 +399,7 @@ main(int argc, char *argv[]) recsz = (size_t)i; maxrec++; assert(recsz < maxrec); - } else - maxrec = 0; + } /* * Add records to the database. |