Fossil SCM

Fix an uninitialized variable in update.

drh 2010-12-15 02:42 trunk
Commit e3313965d3f7be52f2ce349657d30eb86d0b0f05
1 file changed +1 -1
+1 -1
--- src/update.c
+++ src/update.c
@@ -65,11 +65,11 @@
6565
int verboseFlag; /* -v or --verbose. Output extra information */
6666
int debugFlag; /* --debug option */
6767
int nChng; /* Number of file renames */
6868
int *aChng; /* Array of file renames */
6969
int i; /* Loop counter */
70
- int nConflict; /* Number of merge conflicts */
70
+ int nConflict = 0; /* Number of merge conflicts */
7171
7272
url_proxy_options();
7373
latestFlag = find_option("latest",0, 0)!=0;
7474
nochangeFlag = find_option("nochange","n",0)!=0;
7575
verboseFlag = find_option("verbose","v",0)!=0;
7676
--- src/update.c
+++ src/update.c
@@ -65,11 +65,11 @@
65 int verboseFlag; /* -v or --verbose. Output extra information */
66 int debugFlag; /* --debug option */
67 int nChng; /* Number of file renames */
68 int *aChng; /* Array of file renames */
69 int i; /* Loop counter */
70 int nConflict; /* Number of merge conflicts */
71
72 url_proxy_options();
73 latestFlag = find_option("latest",0, 0)!=0;
74 nochangeFlag = find_option("nochange","n",0)!=0;
75 verboseFlag = find_option("verbose","v",0)!=0;
76
--- src/update.c
+++ src/update.c
@@ -65,11 +65,11 @@
65 int verboseFlag; /* -v or --verbose. Output extra information */
66 int debugFlag; /* --debug option */
67 int nChng; /* Number of file renames */
68 int *aChng; /* Array of file renames */
69 int i; /* Loop counter */
70 int nConflict = 0; /* Number of merge conflicts */
71
72 url_proxy_options();
73 latestFlag = find_option("latest",0, 0)!=0;
74 nochangeFlag = find_option("nochange","n",0)!=0;
75 verboseFlag = find_option("verbose","v",0)!=0;
76

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button