aboutsummaryrefslogtreecommitdiff
path: root/tool/sqldiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r--tool/sqldiff.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c
index c7b59400d..ac64ecf90 100644
--- a/tool/sqldiff.c
+++ b/tool/sqldiff.c
@@ -10,8 +10,13 @@
**
*************************************************************************
**
-** This is a utility problem that computes the differences in content
+** This is a utility program that computes the differences in content
** between two SQLite databases.
+**
+** To compile, simply link against SQLite.
+**
+** See the showHelp() routine below for a brief description of how to
+** run the utility.
*/
#include <stdio.h>
#include <stdlib.h>
@@ -492,7 +497,7 @@ static void diff_one_table(const char *zTab, FILE *out){
char **az2 = 0; /* Columns in aux */
int nPk; /* Primary key columns in main */
int nPk2; /* Primary key columns in aux */
- int n; /* Number of columns in main */
+ int n = 0; /* Number of columns in main */
int n2; /* Number of columns in aux */
int nQ; /* Number of output columns in the diff query */
int i; /* Loop counter */
@@ -729,7 +734,7 @@ static void summarize_one_table(const char *zTab, FILE *out){
char **az2 = 0; /* Columns in aux */
int nPk; /* Primary key columns in main */
int nPk2; /* Primary key columns in aux */
- int n; /* Number of columns in main */
+ int n = 0; /* Number of columns in main */
int n2; /* Number of columns in aux */
int i; /* Loop counter */
const char *zSep; /* Separator string */