aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-03-02 17:54:32 +0000
committerdrh <drh@noemail.net>2011-03-02 17:54:32 +0000
commite84009f6a88a4b65bc16118ef38aba0de75864b4 (patch)
tree7b3f20e2253ae2093a6096ad5f8175aba70ee2ed /src/os_unix.c
parentbefd5f3c20826aecaa19d32bcba69de8811150aa (diff)
downloadsqlite-e84009f6a88a4b65bc16118ef38aba0de75864b4.tar.gz
sqlite-e84009f6a88a4b65bc16118ef38aba0de75864b4.zip
Fix bugs in [7b6e30e6a7] that only show up on Mac.
FossilOrigin-Name: ec55e8c6bb4f2419b3813aa2fd1a20d8f5016159
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b70e2736b..40e4b89cd 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5806,7 +5806,6 @@ static int proxyTakeConch(unixFile *pFile){
*/
if( rc==SQLITE_OK && createConch ){
struct stat buf;
- int rc;
int err = fstat(pFile->h, &buf);
if( err==0 ){
mode_t cmode = buf.st_mode&(S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP |
@@ -5839,7 +5838,7 @@ static int proxyTakeConch(unixFile *pFile){
OSTRACE(("TRANSPROXY: CLOSE %d\n", pFile->h));
if( rc==SQLITE_OK && pFile->openFlags ){
if( pFile->h>=0 ){
- robust_close(pFile, pFile->h, __LINE__) ){
+ robust_close(pFile, pFile->h, __LINE__);
}
pFile->h = -1;
int fd = open(pCtx->dbPath, pFile->openFlags,