aboutsummaryrefslogtreecommitdiff
path: root/src/test_malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-07 16:43:44 +0000
committerdrh <drh@noemail.net>2015-12-07 16:43:44 +0000
commitd797a9b5cb22e248015aabf0148ca544a7a7da3d (patch)
tree9c051f51b0faaed76653b3a2b2f90a3756ab4610 /src/test_malloc.c
parent28a6a1168b8352161035a10c8c459eae77187657 (diff)
downloadsqlite-d797a9b5cb22e248015aabf0148ca544a7a7da3d.tar.gz
sqlite-d797a9b5cb22e248015aabf0148ca544a7a7da3d.zip
Changes to avoid obscure, theoretical undefined behavior. This is preventative
measures only - no actual problems observed on tested compilers. FossilOrigin-Name: a9e819082ba19e72db03bba37edfb7702ff489a5
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r--src/test_malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c
index a3ff9d205..aaa640b03 100644
--- a/src/test_malloc.c
+++ b/src/test_malloc.c
@@ -222,7 +222,8 @@ static int faultsimInstall(int install){
assert( memcmp(&m2, &memfault.m, sizeof(m2))==0 );
rc = sqlite3_config(SQLITE_CONFIG_MALLOC, &memfault.m);
- sqlite3_test_control(SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS, 0, 0);
+ sqlite3_test_control(SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS,
+ (void*)0, (void*)0);
}
if( rc==SQLITE_OK ){