aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-08-17 13:42:29 +0000
committerdrh <drh@noemail.net>2009-08-17 13:42:29 +0000
commit9ac06509f19101b9b9f563a659761e1ae1c6b78c (patch)
tree1685356ba895087bd440e57b16732550d6143519 /src/malloc.c
parentd768f944d999f5fcf75fcc6b2c61b998a4dfb3cd (diff)
downloadsqlite-9ac06509f19101b9b9f563a659761e1ae1c6b78c.tar.gz
sqlite-9ac06509f19101b9b9f563a659761e1ae1c6b78c.zip
Enhanced documentation and minor code tweaks in preparation for hardening
the sqlite3_initialize/shutdown interfaces against initialization failures. FossilOrigin-Name: 98c49e6135ae6268a80de88f8b0284f88ef32e1d
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{