diff options
author | drh <drh@noemail.net> | 2003-07-27 17:26:22 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-07-27 17:26:22 +0000 |
commit | 98e3e600122e7da2371f732e726a96d26ab4554f (patch) | |
tree | b1faeb6293230df4bfd545f9e1d5d77c385ed736 /src | |
parent | dc2d94de56ae83b7a986de97caba7f64fcdade30 (diff) | |
download | sqlite-98e3e600122e7da2371f732e726a96d26ab4554f.tar.gz sqlite-98e3e600122e7da2371f732e726a96d26ab4554f.zip |
Make sure the schema loader callback can handle EMPTY_RESULT_CALLBACKS being
on. Ticket #406. (CVS 1065)
FossilOrigin-Name: 8c163fc0c7c721b7a5fa6727b0e90bff4484c782
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index e96b52442..27c2ec92b 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.139 2003/07/22 09:24:45 danielk1977 Exp $ +** $Id: main.c,v 1.140 2003/07/27 17:26:23 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -58,6 +58,7 @@ int sqliteInitCallback(void *pInit, int argc, char **argv, char **azColName){ int nErr = 0; assert( argc==5 ); + if( argv==0 ) return 0; /* Might happen if EMPTY_RESULT_CALLBACKS are on */ if( argv[0]==0 ){ corruptSchema(pData); return 1; |