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/vdbeaux.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/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 334f54e41..8eb3141da 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -289,7 +289,7 @@ int sqlite3VdbeAddOp4Dup8( const u8 *zP4, /* The P4 operand */ int p4type /* P4 operand type */ ){ - char *p4copy = sqlite3DbMallocRaw(sqlite3VdbeDb(p), 8); + char *p4copy = sqlite3DbMallocRawNN(sqlite3VdbeDb(p), 8); if( p4copy ) memcpy(p4copy, zP4, 8); return sqlite3VdbeAddOp4(p, op, p1, p2, p3, p4copy, p4type); } |