aboutsummaryrefslogtreecommitdiff
path: root/src/date.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/date.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/date.c')
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index d78e83cf5..0a1d0e079 100644
--- a/src/date.c
+++ b/src/date.c
@@ -967,7 +967,7 @@ static void strftimeFunc(
sqlite3_result_error_toobig(context);
return;
}else{
- z = sqlite3DbMallocRaw(db, (int)n);
+ z = sqlite3DbMallocRawNN(db, (int)n);
if( z==0 ){
sqlite3_result_error_nomem(context);
return;