mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Add the slightly faster sqlite3DbMallocRawNN(db,n) routine for the majority
cases where db is guaranteed to be not NULL. FossilOrigin-Name: 0a802e96ab06e2643834b83671fa8353da1a348d
This commit is contained in:
@@ -1150,7 +1150,7 @@ void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){
|
||||
char *zBlob;
|
||||
int i;
|
||||
|
||||
zBlob = (char *)sqlite3DbMallocRaw(db, n/2 + 1);
|
||||
zBlob = (char *)sqlite3DbMallocRawNN(db, n/2 + 1);
|
||||
n--;
|
||||
if( zBlob ){
|
||||
for(i=0; i<n; i+=2){
|
||||
|
||||
Reference in New Issue
Block a user