/ Check-in [61870b42]
Login

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

Overview
Comment:Fix compilation issue (C99-ism) seen with MSVC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | rtree-integrity-check
Files: files | file ages | folders
SHA3-256: 61870b42b033189509b244c76d28932f7a447b887ffe04a3c81461148e54cfb5
User & Date: mistachkin 2017-10-25 18:00:58
Context
2017-10-25
18:01
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. check-in: 7d264980 user: mistachkin tags: trunk
18:00
Fix compilation issue (C99-ism) seen with MSVC. Closed-Leaf check-in: 61870b42 user: mistachkin tags: rtree-integrity-check
16:38
Add SQL scalar function rtreecheck() to the rtree module. For running checks to ensure the shadow tables used by an rtree virtual table are internally consistent. check-in: dde0bb3e user: dan tags: rtree-integrity-check
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/rtree/rtree.c.

  3648   3648   ** NULL is returned and an error code left in RtreeCheck.rc.
  3649   3649   */
  3650   3650   static sqlite3_stmt *rtreeCheckPrepare(
  3651   3651     RtreeCheck *pCheck,             /* RtreeCheck object */
  3652   3652     const char *zFmt, ...           /* Format string and trailing args */
  3653   3653   ){
  3654   3654     va_list ap;
  3655         -  va_start(ap, zFmt);
  3656         -  char *z = sqlite3_vmprintf(zFmt, ap);
         3655  +  char *z;
  3657   3656     sqlite3_stmt *pRet = 0;
  3658   3657   
         3658  +  va_start(ap, zFmt);
         3659  +  z = sqlite3_vmprintf(zFmt, ap);
         3660  +
  3659   3661     if( pCheck->rc==SQLITE_OK ){
  3660   3662       pCheck->rc = sqlite3_prepare_v2(pCheck->db, z, -1, &pRet, 0);
  3661   3663     }
  3662   3664   
  3663   3665     sqlite3_free(z);
  3664   3666     va_end(ap);
  3665   3667     return pRet;