mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
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
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user