diff options
author | drh <drh@noemail.net> | 2015-06-30 03:13:47 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-06-30 03:13:47 +0000 |
commit | 597d2b6412a38ca8ce0312579d0acaf4035aaee9 (patch) | |
tree | 25eeed7585d9f6e15927cef212d765b34f47c99a /src/main.c | |
parent | 27fb746cde8eda3889ebbda44f576db991ba2b5b (diff) | |
download | sqlite-597d2b6412a38ca8ce0312579d0acaf4035aaee9.tar.gz sqlite-597d2b6412a38ca8ce0312579d0acaf4035aaee9.zip |
Change sqlite3ApiExit() so that its first argument is never NULL.
FossilOrigin-Name: 791b706ec6c3e80885666e48e01524f0e9a7557e
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index c047943c9..faeee6af2 100644 --- a/src/main.c +++ b/src/main.c @@ -2928,7 +2928,7 @@ opendb_out: sqlite3GlobalConfig.xSqllog(pArg, db, zFilename, 0); } #endif - return sqlite3ApiExit(0, rc); + return rc & 0xff; } /* @@ -2986,7 +2986,7 @@ int sqlite3_open16( } sqlite3ValueFree(pVal); - return sqlite3ApiExit(0, rc); + return rc & 0xff; } #endif /* SQLITE_OMIT_UTF16 */ |