1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Make sure the error message handler is able to deal with NULL expression

spans. Ticket #3508. (CVS 5949)

FossilOrigin-Name: ce36b6474a62f0a5b8d82968ca9a171f7143ae31
This commit is contained in:
drh
2008-11-22 18:28:50 +00:00
parent aabbed2218
commit 17d46fc7f1
4 changed files with 49 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
** an historical reference. Most of the "enhancements" have been backed
** out so that the functionality is now the same as standard printf().
**
** $Id: printf.c,v 1.96 2008/11/20 18:20:28 drh Exp $
** $Id: printf.c,v 1.97 2008/11/22 18:28:51 drh Exp $
**
**************************************************************************
**
@@ -725,7 +725,7 @@ void sqlite3StrAccumAppend(StrAccum *p, const char *z, int N){
if( N<0 ){
N = strlen(z);
}
if( N==0 ){
if( N==0 || z==0 ){
return;
}
if( p->nChar+N >= p->nAlloc ){