]> granicus.if.org Git - php/commitdiff
Fix an unchecked return - change was back-migrated
authorJoey Smith <joey@php.net>
Tue, 9 Aug 2011 06:36:47 +0000 (06:36 +0000)
committerJoey Smith <joey@php.net>
Tue, 9 Aug 2011 06:36:47 +0000 (06:36 +0000)
from version 3.7.6.3 of sqlite.c from upstream.

ext/sqlite3/libsqlite/sqlite3.c

index 786a3ec62f02a00ed847d3f9ee6e364b59b44980..555c63697a336fc6d86d9728b84a190355c3b4c1 100644 (file)
@@ -17818,7 +17818,7 @@ SQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 n){
   sqlite3_int64 priorLimit;
   sqlite3_int64 excess;
 #ifndef SQLITE_OMIT_AUTOINIT
-  sqlite3_initialize();
+  if( sqlite3_initialize() ) return 0;
 #endif
   sqlite3_mutex_enter(mem0.mutex);
   priorLimit = mem0.alarmThreshold;