Index: src/tokenize.c ================================================================== --- src/tokenize.c +++ src/tokenize.c @@ -13,11 +13,11 @@ ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** -** $Id: tokenize.c,v 1.142 2008/04/28 18:46:43 drh Exp $ +** $Id: tokenize.c,v 1.143 2008/06/02 13:00:33 danielk1977 Exp $ */ #include "sqliteInt.h" #include #include @@ -418,11 +418,13 @@ switch( tokenType ){ case TK_SPACE: case TK_COMMENT: { if( db->u1.isInterrupted ){ pParse->rc = SQLITE_INTERRUPT; - sqlite3SetString(pzErrMsg, "interrupt", (char*)0); + if( pzErrMsg ){ + sqlite3SetString(pzErrMsg, "interrupt", (char*)0); + } goto abort_parse; } break; } case TK_ILLEGAL: {