libtt: Resolve uninitialized warningss

This commit is contained in:
Peter Howkins
2021-12-19 04:04:39 +00:00
committed by Jon Trulson
parent 31774af2f2
commit 35e94e3878
6 changed files with 23 additions and 12 deletions

View File

@@ -56,11 +56,11 @@ _isbtree_insert(Btree *btree, char *key)
Keydesc2 *pkeydesc2 = btree->keydesc2;
int keylength = pkeydesc2->k2_len;
int nkeys; /* Number of keys in the page */
int capac;
int capac = 0;
char keybuf[MAXKEYSIZE];
int i;
Blkno blkno;
char *pkp, *pkp2, *pkp3;
char *pkp = NULL, *pkp2, *pkp3;
Bufhdr *kp2bhdr, *kp3bhdr;
Blkno blkno2, blkno3;
int level;

View File

@@ -149,13 +149,13 @@ _amread(Bytearray *isfhandle, char *record, int *reclen,
struct errcode *errcode)
{
Fcb *fcb = NULL;
Recno recnum2;
Recno recnum2 = 0;
int err;
Crp *crp;
Btree *btree = NULL;
Keydesc2 *pkeydesc2;
char keybuf1[MAXKEYSIZE], keybuf2[MAXKEYSIZE];
char *pkey, *pkeynext;
char *pkey = NULL, *pkeynext;
int skipbytes;
int ret;
Bytearray oldcurpos;

View File

@@ -158,7 +158,7 @@ _amstart(Bytearray *isfhandle, char *record, int *reclen,
Bytearray *curpos, Recno *recnum, struct errcode *errcode)
{
Fcb *fcb;
Recno recnum2;
Recno recnum2 = 0;
int err;
Crp *newcrp = NULL;
char recbuf [ISMAXRECLEN];