mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and
SQLITE_CONFIG_HEAP must always be a pointer. FossilOrigin-Name: 5e14cadff09d7425c8e1cc5e817f2b0609e52a46
This commit is contained in:
@@ -910,7 +910,7 @@ static int test_config_scratch(
|
||||
free(buf);
|
||||
if( sz<0 ){
|
||||
buf = 0;
|
||||
rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, 0, 0, 0);
|
||||
rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, (void*)0, 0, 0);
|
||||
}else{
|
||||
buf = malloc( sz*N + 1 );
|
||||
rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, buf, sz, N);
|
||||
@@ -957,7 +957,7 @@ static int test_config_pagecache(
|
||||
Tcl_SetObjResult(interp, pRes);
|
||||
|
||||
if( sz<0 ){
|
||||
sqlite3_config(SQLITE_CONFIG_PAGECACHE, 0, 0, 0);
|
||||
sqlite3_config(SQLITE_CONFIG_PAGECACHE, (void*)0, 0, 0);
|
||||
}else{
|
||||
buf = malloc( sz*N );
|
||||
sqlite3_config(SQLITE_CONFIG_PAGECACHE, buf, sz, N);
|
||||
|
Reference in New Issue
Block a user