/ Check-in [6f5e84ba]
Login

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

Overview
Comment:Fix harmless compiler warnings only seen with STAT4 enabled.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6f5e84bafcaf425cb664c7db8179c9c09a13c96aaf057551c04a919ca554d057
User & Date: mistachkin 2018-08-17 21:14:28
Context
2018-08-23
14:54
Merge enhancements from trunk. check-in: c446c884 user: drh tags: rtree-geopoly
2018-08-21
12:16
Fix various harmless warnings generated by static analysis tools. check-in: a04a0ea9 user: drh tags: trunk
2018-08-18
18:14
Merge trunk fixes. check-in: ccad2779 user: drh tags: alter-table-rename-column
2018-08-17
21:14
Fix harmless compiler warnings only seen with STAT4 enabled. check-in: 6f5e84ba user: mistachkin tags: trunk
2018-08-16
16:24
Fix a harmless unused-variable compiler warning that only came up in certain compile-time configurations. check-in: 45684292 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbemem.c.

  1778   1778   int sqlite3Stat4Column(
  1779   1779     sqlite3 *db,                    /* Database handle */
  1780   1780     const void *pRec,               /* Pointer to buffer containing record */
  1781   1781     int nRec,                       /* Size of buffer pRec in bytes */
  1782   1782     int iCol,                       /* Column to extract */
  1783   1783     sqlite3_value **ppVal           /* OUT: Extracted value */
  1784   1784   ){
  1785         -  u32 t;                          /* a column type code */
         1785  +  u32 t = 0;                      /* a column type code */
  1786   1786     int nHdr;                       /* Size of the header in the record */
  1787   1787     int iHdr;                       /* Next unread header byte */
  1788   1788     int iField;                     /* Next unread data byte */
  1789         -  int szField;                    /* Size of the current data field */
         1789  +  int szField = 0;                /* Size of the current data field */
  1790   1790     int i;                          /* Column index */
  1791   1791     u8 *a = (u8*)pRec;              /* Typecast byte array */
  1792   1792     Mem *pMem = *ppVal;             /* Write result into this Mem object */
  1793   1793   
  1794   1794     assert( iCol>0 );
  1795   1795     iHdr = getVarint32(a, nHdr);
  1796   1796     if( nHdr>nRec || iHdr>=nHdr ) return SQLITE_CORRUPT_BKPT;