aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c
index be9093de5..7afe528d7 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -43,7 +43,9 @@ void sqlite3_soft_heap_limit(int n){
}else{
iLimit = n;
}
+#ifndef SQLITE_OMIT_AUTOINIT
sqlite3_initialize();
+#endif
if( iLimit>0 ){
sqlite3MemoryAlarm(softHeapLimitEnforcer, 0, iLimit);
}else{