aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-02-26 13:07:37 +0000
committerdrh <drh@noemail.net>2010-02-26 13:07:37 +0000
commit383d30f48392d64e1a27789f4e8b8fe8fb95bdd2 (patch)
treee4f8400a54119ed035b2263366194755b4781456 /src/os_unix.c
parent0d06d98980982e839a329470d2677424dcfa8fed (diff)
downloadsqlite-383d30f48392d64e1a27789f4e8b8fe8fb95bdd2.tar.gz
sqlite-383d30f48392d64e1a27789f4e8b8fe8fb95bdd2.zip
Avoid incorrect compiler warnings by doing a couple of needless
variable initializations. FossilOrigin-Name: 8f29490da62df07ea922b03cab52b6edd2669edb
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
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,