/ Check-in [dddda685]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dddda685f3443d8a38901f758543fcde73d7b8cfe72b0ad5f419cd7459343bf5
User & Date: mistachkin 2019-02-02 01:27:45
Context
2019-02-02
13:47
Fix a buffer overread in fts5 debugging scalar function fts5_decode(). check-in: 54f2399f user: dan tags: trunk
01:27
Fix harmless compiler warning. check-in: dddda685 user: mistachkin tags: trunk
2019-02-01
21:08
Slight adjustment to the printf formatter large memory allocation detector so that it does not overestimate the amount of space needed for oversize %d conversions. check-in: 1aee70d6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tokenize.c.

   743    743     Vdbe *pVdbe,       /* VM being reprepared */
   744    744     const char *zSql   /* The original SQL string */
   745    745   ){
   746    746     sqlite3 *db;       /* The database connection */
   747    747     int i;             /* Next unread byte of zSql[] */
   748    748     int n;             /* length of current token */
   749    749     int tokenType;     /* type of current token */
   750         -  int prevType;      /* Previous non-whitespace token */
          750  +  int prevType = 0;  /* Previous non-whitespace token */
   751    751     int nParen;        /* Number of nested levels of parentheses */
   752    752     int iStartIN;      /* Start of RHS of IN operator in z[] */
   753    753     int nParenAtIN;    /* Value of nParent at start of RHS of IN operator */
   754    754     int j;             /* Bytes of normalized SQL generated so far */
   755    755     sqlite3_str *pStr; /* The normalized SQL string under construction */
   756    756   
   757    757     db = sqlite3VdbeDb(pVdbe);