diff options
author | drh <drh@noemail.net> | 2004-02-25 02:33:34 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-02-25 02:33:34 +0000 |
commit | d41d73d556d256f7732fb6a79063457b90f5dabc (patch) | |
tree | b5c7334414ecb42802a17eae11c850a1e72ec008 /src | |
parent | f73287ceb0b2421f02190092f878a876e9ae7bb9 (diff) | |
download | sqlite-d41d73d556d256f7732fb6a79063457b90f5dabc.tar.gz sqlite-d41d73d556d256f7732fb6a79063457b90f5dabc.zip |
Fix the return type of sqliteRunVacuum. Ticket #627. (CVS 1271)
FossilOrigin-Name: 9c9f4a867a4ea708847cbb0839b7279eb33ecd7c
Diffstat (limited to 'src')
-rw-r--r-- | src/vacuum.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vacuum.c b/src/vacuum.c index 49624360e..53a274d63 100644 --- a/src/vacuum.c +++ b/src/vacuum.c @@ -14,7 +14,7 @@ ** Most of the code in this file may be omitted by defining the ** SQLITE_OMIT_VACUUM macro. ** -** $Id: vacuum.c,v 1.11 2004/02/12 13:02:56 drh Exp $ +** $Id: vacuum.c,v 1.12 2004/02/25 02:33:35 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -314,8 +314,7 @@ end_of_vacuum: sqliteFree(sVac.s1.z); sqliteFree(sVac.s2.z); if( zErrMsg ) sqlite_freemem(zErrMsg); - if( rc==SQLITE_ABORT ) rc = SQLITE_ERROR; - if( sVac.rc!=SQLITE_OK ) rc = sVac.rc; + if( rc==SQLITE_ABORT ) sVac.rc = SQLITE_ERROR; return sVac.rc; #endif } |