/ Check-in [0fb42090]
Login

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

Overview
Comment:Fix harmless compiler warnings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0fb42090cb2c785e044abe273a00da134927db191fea7b0c67ba4028944bce3a
User & Date: mistachkin 2018-01-09 20:49:33
Context
2018-01-09
22:23
When disconnecting from the 'swarmvtab' extension, close each database prior to invoking the 'openclose' function on it. check-in: 3e5647cb user: mistachkin tags: trunk
20:49
Fix harmless compiler warnings. check-in: 0fb42090 user: mistachkin tags: trunk
20:44
Return SQLITE_CONSTRAINT if a user attempts to update a zipfile table. check-in: 64c9ccf6 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to ext/misc/zipfile.c.

  1198   1198     sqlite3_value **apVal, 
  1199   1199     sqlite_int64 *pRowid
  1200   1200   ){
  1201   1201     ZipfileTab *pTab = (ZipfileTab*)pVtab;
  1202   1202     int rc = SQLITE_OK;             /* Return Code */
  1203   1203     ZipfileEntry *pNew = 0;         /* New in-memory CDS entry */
  1204   1204   
  1205         -  u32 mode;                       /* Mode for new entry */
  1206         -  i64 mTime;                      /* Modification time for new entry */
         1205  +  u32 mode = 0;                   /* Mode for new entry */
         1206  +  i64 mTime = 0;                  /* Modification time for new entry */
  1207   1207     i64 sz = 0;                     /* Uncompressed size */
  1208         -  const char *zPath;              /* Path for new entry */
  1209         -  int nPath;                      /* strlen(zPath) */
         1208  +  const char *zPath = 0;          /* Path for new entry */
         1209  +  int nPath = 0;                  /* strlen(zPath) */
  1210   1210     const u8 *pData = 0;            /* Pointer to buffer containing content */
  1211   1211     int nData = 0;                  /* Size of pData buffer in bytes */
  1212   1212     int iMethod = 0;                /* Compression method for new entry */
  1213   1213     u8 *pFree = 0;                  /* Free this */
  1214   1214     ZipfileCDS cds;                 /* New Central Directory Structure entry */
  1215   1215   
  1216   1216     int bIsDir = 0;