diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 2 | ||||
-rw-r--r-- | src/os_unix.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index a54366241..827eceb17 100644 --- a/src/btree.c +++ b/src/btree.c @@ -5323,7 +5323,7 @@ static void insertCell( Pgno iChild, /* If non-zero, replace first 4 bytes with this value */ int *pRC /* Read and write return code from here */ ){ - int idx; /* Where to write new cell content in data[] */ + int idx = 0; /* Where to write new cell content in data[] */ int j; /* Loop counter */ int end; /* First byte past the last cell pointer in data[] */ int ins; /* Index in data[] where new cell pointer is inserted */ diff --git a/src/os_unix.c b/src/os_unix.c index 1cce7dac1..88263df66 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1248,7 +1248,7 @@ static int unixLock(sqlite3_file *id, int locktype){ struct unixLockInfo *pLock = pFile->pLock; struct flock lock; int s = 0; - int tErrno; + int tErrno = 0; assert( pFile ); OSTRACE7("LOCK %d %s was %s(%s,%d) pid=%d (unix)\n", pFile->h, |