diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/date.c | 4 | ||||
-rw-r--r-- | src/util.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/date.c b/src/date.c index f7fdf0d92..3625fe5c7 100644 --- a/src/date.c +++ b/src/date.c @@ -16,7 +16,7 @@ ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file. ** All other code has file scope. ** -** $Id: date.c,v 1.61 2007/03/29 17:57:21 drh Exp $ +** $Id: date.c,v 1.62 2007/04/06 02:32:34 drh Exp $ ** ** NOTES: ** @@ -577,7 +577,7 @@ static int parseModifier(const char *zMod, DateTime *p){ case '8': case '9': { n = getValue(z, &r); - if( n<=0 ) break; + assert( n>=1 ); if( z[n]==':' ){ /* A modifier of the form (+|-)HH:MM:SS.FFF adds (or subtracts) the ** specified number of hours, minutes, seconds, and fractional seconds diff --git a/src/util.c b/src/util.c index 54d1d504f..b83fd9472 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.198 2007/03/31 22:33:48 drh Exp $ +** $Id: util.c,v 1.199 2007/04/06 02:32:34 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -751,7 +751,7 @@ void sqlite3SetString(char **pz, ...){ const char *z; char *zResult; - if( pz==0 ) return; + assert( pz!=0 ); nByte = 1; va_start(ap, pz); while( (z = va_arg(ap, const char*))!=0 ){ |