aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-11-22 18:28:50 +0000
committerdrh <drh@noemail.net>2008-11-22 18:28:50 +0000
commit17d46fc7f11b40ee9498e3302c9d0ae281dfbad8 (patch)
tree7283efcf85cf0eebe1ec80d57b5f2d51970f0d66 /src
parentaabbed2218587e21cb620149740708cceff2f2d5 (diff)
downloadsqlite-17d46fc7f11b40ee9498e3302c9d0ae281dfbad8.tar.gz
sqlite-17d46fc7f11b40ee9498e3302c9d0ae281dfbad8.zip
Make sure the error message handler is able to deal with NULL expression
spans. Ticket #3508. (CVS 5949) FossilOrigin-Name: ce36b6474a62f0a5b8d82968ca9a171f7143ae31
Diffstat (limited to 'src')
-rw-r--r--src/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index 8729f39d8..6798aa7dd 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -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 ){