aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2011-04-02 17:00:47 +0000
committerdan <dan@noemail.net>2011-04-02 17:00:47 +0000
commit51438a79366ef6cff5a920930ab76de401b53812 (patch)
tree7d515ed1364a654d2a6c6740e932b22fffeb1d1b /src/os_unix.c
parent6c15487b7edf747b7b08cf6eb311f503adb0cd6a (diff)
downloadsqlite-51438a79366ef6cff5a920930ab76de401b53812.tar.gz
sqlite-51438a79366ef6cff5a920930ab76de401b53812.zip
Avoid returning SQLITE_NOTFOUND when the unix xSetSystemCall interface is invoked with NULL passed as the second argument, even if all the default system calls are already installed.
FossilOrigin-Name: 3b91eaaa0b3c25022332ba3d1a5651848fc5d84c
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 f04b6af27..67dd06fc1 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -394,10 +394,10 @@ static int unixSetSystemCall(
/* If no zName is given, restore all system calls to their default
** settings and return NULL
*/
+ rc = SQLITE_OK;
for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
if( aSyscall[i].pDefault ){
aSyscall[i].pCurrent = aSyscall[i].pDefault;
- rc = SQLITE_OK;
}
}
}else{