diff options
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c index 3e38d1df9..29c6b0dcd 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -130,7 +130,8 @@ sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 n){ sqlite3_int64 priorLimit; sqlite3_int64 excess; #ifndef SQLITE_OMIT_AUTOINIT - sqlite3_initialize(); + int rc = sqlite3_initialize(); + if( rc ) return -1; #endif sqlite3_mutex_enter(mem0.mutex); priorLimit = mem0.alarmThreshold; |