mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Fix a bug in the RTRIM collating sequence discovered while working
on condition/decision branch coverage. Increase test coverage of the date/time functions. (CVS 5010) FossilOrigin-Name: c5435f71efa0b34c759bac4a15fdf43abf39ddfc
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
** other files are for internal use by SQLite and should not be
|
||||
** accessed by users of the library.
|
||||
**
|
||||
** $Id: main.c,v 1.432 2008/04/15 02:36:34 drh Exp $
|
||||
** $Id: main.c,v 1.433 2008/04/15 04:02:41 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -62,7 +62,7 @@ void sqlite3Coverage(int x){
|
||||
** Return true if the buffer z[0..n-1] contains all spaces.
|
||||
*/
|
||||
static int allSpaces(const char *z, int n){
|
||||
while( n>0 && z[--n]==' ' ){}
|
||||
while( n>0 && z[n-1]==' ' ){ n--; }
|
||||
return n==0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user