diff options
author | drh <drh@noemail.net> | 2016-02-05 13:38:36 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-02-05 13:38:36 +0000 |
commit | 575fad6500070ad7fc7f91a8906b0b285965f99a (patch) | |
tree | 02a034f606a55aa903a161878ede6ff87932f75b /src/attach.c | |
parent | 98c7a12c003278d9332c25dc9782e491b7bb0845 (diff) | |
download | sqlite-575fad6500070ad7fc7f91a8906b0b285965f99a.tar.gz sqlite-575fad6500070ad7fc7f91a8906b0b285965f99a.zip |
Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority
cases where db is guaranteed to be not NULL.
FossilOrigin-Name: 0a802e96ab06e2643834b83671fa8353da1a348d
Diffstat (limited to 'src/attach.c')
-rw-r--r-- | src/attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attach.c b/src/attach.c index e167951f6..2288ac9b6 100644 --- a/src/attach.c +++ b/src/attach.c @@ -109,7 +109,7 @@ static void attachFunc( ** hash tables. */ if( db->aDb==db->aDbStatic ){ - aNew = sqlite3DbMallocRaw(db, sizeof(db->aDb[0])*3 ); + aNew = sqlite3DbMallocRawNN(db, sizeof(db->aDb[0])*3 ); if( aNew==0 ) return; memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2); }else{ |