aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-04-21 12:02:56 +0000
committerdrh <drh@noemail.net>2009-04-21 12:02:56 +0000
commita76409211d794a05ef4f858d75e543a5d465c9e2 (patch)
tree6a93b895d9704df2df83e46eb08daaa0bd32836f /src
parent1d46146b58a4a436108483f485b28cf67d0e9ede (diff)
downloadsqlite-a76409211d794a05ef4f858d75e543a5d465c9e2.tar.gz
sqlite-a76409211d794a05ef4f858d75e543a5d465c9e2.zip
Remove a redundant test from sqlite3_shutdown(). (CVS 6528)
FossilOrigin-Name: 6f481ceb503c7df74d9417a5a7f019ff56261ea8
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a6cdefb4c..60dcf9e66 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.538 2009/04/19 12:23:58 drh Exp $
+** $Id: main.c,v 1.539 2009/04/21 12:02:56 drh Exp $
*/
#include "sqliteInt.h"
@@ -221,9 +221,7 @@ int sqlite3_shutdown(void){
if( sqlite3GlobalConfig.isInit ){
sqlite3GlobalConfig.isMallocInit = 0;
sqlite3PcacheShutdown();
- if( sqlite3GlobalConfig.isInit ){
- sqlite3_os_end();
- }
+ sqlite3_os_end();
sqlite3_reset_auto_extension();
sqlite3MallocEnd();
sqlite3MutexEnd();