/ Check-in [5f48d6f6]
Login

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

Overview
Comment:Fix compiler warnings in sqldiff.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5f48d6f6c0a573ecc5bd42cb6c019288e22d295f
User & Date: drh 2015-04-25 18:39:21
Context
2015-04-27
15:08
Update the fuzzer test data after having run it through afl-cmin to remove redundant test cases. check-in: 8134d41b user: drh tags: trunk
2015-04-25
18:39
Fix compiler warnings in sqldiff. check-in: 5f48d6f6 user: drh tags: trunk
17:45
Update the AFL fuzzer data with newly discovered paths. check-in: d9821980 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/sqldiff.c.

   493    493   */
   494    494   static void diff_one_table(const char *zTab, FILE *out){
   495    495     char *zId = safeId(zTab); /* Name of table (translated for us in SQL) */
   496    496     char **az = 0;            /* Columns in main */
   497    497     char **az2 = 0;           /* Columns in aux */
   498    498     int nPk;                  /* Primary key columns in main */
   499    499     int nPk2;                 /* Primary key columns in aux */
   500         -  int n;                    /* Number of columns in main */
          500  +  int n = 0;                /* Number of columns in main */
   501    501     int n2;                   /* Number of columns in aux */
   502    502     int nQ;                   /* Number of output columns in the diff query */
   503    503     int i;                    /* Loop counter */
   504    504     const char *zSep;         /* Separator string */
   505    505     Str sql;                  /* Comparison query */
   506    506     sqlite3_stmt *pStmt;      /* Query statement to do the diff */
   507    507   
................................................................................
   730    730   */
   731    731   static void summarize_one_table(const char *zTab, FILE *out){
   732    732     char *zId = safeId(zTab); /* Name of table (translated for us in SQL) */
   733    733     char **az = 0;            /* Columns in main */
   734    734     char **az2 = 0;           /* Columns in aux */
   735    735     int nPk;                  /* Primary key columns in main */
   736    736     int nPk2;                 /* Primary key columns in aux */
   737         -  int n;                    /* Number of columns in main */
          737  +  int n = 0;                /* Number of columns in main */
   738    738     int n2;                   /* Number of columns in aux */
   739    739     int i;                    /* Loop counter */
   740    740     const char *zSep;         /* Separator string */
   741    741     Str sql;                  /* Comparison query */
   742    742     sqlite3_stmt *pStmt;      /* Query statement to do the diff */
   743    743     sqlite3_int64 nUpdate;    /* Number of updated rows */
   744    744     sqlite3_int64 nUnchanged; /* Number of unmodified rows */