diff options
author | drh <drh@noemail.net> | 2020-05-17 00:26:44 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-05-17 00:26:44 +0000 |
commit | d924e7bc78a4ca604bce0f8d9d0390d3feddba01 (patch) | |
tree | 4aa5c32ecc352491e28610d579f135a92e0a448a /src/func.c | |
parent | b2eb7e46eb3c0a1611d7777fb3a1ba9b30f56ea5 (diff) | |
download | sqlite-d924e7bc78a4ca604bce0f8d9d0390d3feddba01.tar.gz sqlite-d924e7bc78a4ca604bce0f8d9d0390d3feddba01.zip |
Use the sqlite3Realloc() interface internally, rather than the public
sqlite3_realloc64() equivalent, to avoid unnecessary calls to
sqlite3_initialize().
FossilOrigin-Name: 1313557b512297e7b75ed748894379b2022aecf696d5a58318e46a668321c1ff
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c index f50fa1986..48b5f5f19 100644 --- a/src/func.c +++ b/src/func.c @@ -1283,7 +1283,7 @@ static void replaceFunc( ** whose index is a power of two: 1, 2, 4, 8, 16, 32, ... */ u8 *zOld; zOld = zOut; - zOut = sqlite3_realloc64(zOut, (int)nOut + (nOut - nStr - 1)); + zOut = sqlite3Realloc(zOut, (int)nOut + (nOut - nStr - 1)); if( zOut==0 ){ sqlite3_result_error_nomem(context); sqlite3_free(zOld); |