aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-05-27 10:31:29 +0000
committerdrh <drh@noemail.net>2009-05-27 10:31:29 +0000
commitb7916a78ff7708161b6e2de54af5aea85a07c543 (patch)
tree0699a42ca40c038b563d4fadd6bfeb2080942de0 /src/util.c
parent38a2c01b09b494030bd3f62743119331522d1e04 (diff)
downloadsqlite-b7916a78ff7708161b6e2de54af5aea85a07c543.tar.gz
sqlite-b7916a78ff7708161b6e2de54af5aea85a07c543.zip
Simplifications to the Expr object: Remove Expr.span completely and convert
Expr.token into a char* Expr.zToken. Also simplify the Token object by removing the Token.dyn and Token.quoted fields. (CVS 6681) FossilOrigin-Name: 7cb1c3ba0759539cb035978fdaff6316775986f3
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 4ce0eaa48..76a8848db 100644
--- a/src/util.c
+++ b/src/util.c
@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
-** $Id: util.c,v 1.254 2009/05/06 19:03:14 drh Exp $
+** $Id: util.c,v 1.255 2009/05/27 10:31:29 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -108,6 +108,7 @@ int sqlite3IsNaN(double x){
*/
int sqlite3Strlen30(const char *z){
const char *z2 = z;
+ if( z==0 ) return 0;
while( *z2 ){ z2++; }
return 0x3fffffff & (int)(z2 - z);
}