aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-08-22 18:00:11 +0000
committerdrh <drh@noemail.net>2014-08-22 18:00:11 +0000
commit13f40da31d9692a96dcab00f85afee9fd68bae12 (patch)
treefe00c67d606c5ffe0912c51f4608f3d7628586fc /src/malloc.c
parent172087fb733f54d025fe6a112898cdcabada7e47 (diff)
downloadsqlite-13f40da31d9692a96dcab00f85afee9fd68bae12.tar.gz
sqlite-13f40da31d9692a96dcab00f85afee9fd68bae12.zip
Split the sqlite3Error() routine into sqlite3Error() and
sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. FossilOrigin-Name: cf561d1f0bb60b3d638632d20bd686dda4fa4a04
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c
index 9c11d0776..9fb430397 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -776,7 +776,7 @@ int sqlite3ApiExit(sqlite3* db, int rc){
*/
assert( !db || sqlite3_mutex_held(db->mutex) );
if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){
- sqlite3Error(db, SQLITE_NOMEM, 0);
+ sqlite3Error(db, SQLITE_NOMEM);
db->mallocFailed = 0;
rc = SQLITE_NOMEM;
}