1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Add "return rc;" to the end of sqlite3_test_control(). (CVS 4760)

FossilOrigin-Name: b547e7ea75294997de4298e30af813f36dfa3b05
This commit is contained in:
danielk1977
2008-01-31 15:31:01 +00:00
parent 72190430c5
commit 7c36d07715
3 changed files with 11 additions and 10 deletions

View File

@@ -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.416 2008/01/31 14:43:24 drh Exp $
** $Id: main.c,v 1.417 2008/01/31 15:31:02 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -843,7 +843,7 @@ const void *sqlite3_errmsg16(sqlite3 *db){
** passed to this function, we assume a malloc() failed during sqlite3_open().
*/
int sqlite3_errcode(sqlite3 *db){
if( !sqlite3SafetyCheckSickOrOk(db) ){
if( db && !sqlite3SafetyCheckSickOrOk(db) ){
return SQLITE_MISUSE;
}
if( !db || db->mallocFailed ){
@@ -1505,4 +1505,5 @@ int sqlite3_test_control(int op, ...){
#endif /* SQLITE_OMIT_FAULTINJECTOR */
}
va_end(ap);
return rc;
}