aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-02-05 13:38:36 +0000
committerdrh <drh@noemail.net>2016-02-05 13:38:36 +0000
commit575fad6500070ad7fc7f91a8906b0b285965f99a (patch)
tree02a034f606a55aa903a161878ede6ff87932f75b /src/update.c
parent98c7a12c003278d9332c25dc9782e491b7bb0845 (diff)
downloadsqlite-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/update.c')
-rw-r--r--src/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index a9735cadc..20951aade 100644
--- a/src/update.c
+++ b/src/update.c
@@ -197,7 +197,7 @@ void sqlite3Update(
/* Allocate space for aXRef[], aRegIdx[], and aToOpen[].
** Initialize aXRef[] and aToOpen[] to their default values.
*/
- aXRef = sqlite3DbMallocRaw(db, sizeof(int) * (pTab->nCol+nIdx) + nIdx+2 );
+ aXRef = sqlite3DbMallocRawNN(db, sizeof(int) * (pTab->nCol+nIdx) + nIdx+2 );
if( aXRef==0 ) goto update_cleanup;
aRegIdx = aXRef+pTab->nCol;
aToOpen = (u8*)(aRegIdx+nIdx);