Fossil SCM

Fix uninitialized variable in the previous check-in.

drh 2024-03-22 12:30 trunk
Commit 38dad38b6d87e0fa08194d3e46b07a6b0da685f0d9c416d482e99cec72b06370
1 file changed +1 -1
+1 -1
--- src/sync.c
+++ src/sync.c
@@ -52,11 +52,11 @@
5252
unsigned syncFlags, /* Mask of SYNC_* flags */
5353
unsigned configRcvMask, /* Receive these configuration items */
5454
unsigned configSendMask, /* Send these configuration items */
5555
const char *zAltPCode /* Alternative project code (usually NULL) */
5656
){
57
- int nErr; /* Number of errors seen */
57
+ int nErr = 0; /* Number of errors seen */
5858
int nOther; /* Number of extra remote URLs */
5959
char **azOther; /* Text of extra remote URLs */
6060
int i; /* Loop counter */
6161
int iEnd; /* Loop termination point */
6262
int nextIEnd; /* Loop termination point for next pass */
6363
--- src/sync.c
+++ src/sync.c
@@ -52,11 +52,11 @@
52 unsigned syncFlags, /* Mask of SYNC_* flags */
53 unsigned configRcvMask, /* Receive these configuration items */
54 unsigned configSendMask, /* Send these configuration items */
55 const char *zAltPCode /* Alternative project code (usually NULL) */
56 ){
57 int nErr; /* Number of errors seen */
58 int nOther; /* Number of extra remote URLs */
59 char **azOther; /* Text of extra remote URLs */
60 int i; /* Loop counter */
61 int iEnd; /* Loop termination point */
62 int nextIEnd; /* Loop termination point for next pass */
63
--- src/sync.c
+++ src/sync.c
@@ -52,11 +52,11 @@
52 unsigned syncFlags, /* Mask of SYNC_* flags */
53 unsigned configRcvMask, /* Receive these configuration items */
54 unsigned configSendMask, /* Send these configuration items */
55 const char *zAltPCode /* Alternative project code (usually NULL) */
56 ){
57 int nErr = 0; /* Number of errors seen */
58 int nOther; /* Number of extra remote URLs */
59 char **azOther; /* Text of extra remote URLs */
60 int i; /* Loop counter */
61 int iEnd; /* Loop termination point */
62 int nextIEnd; /* Loop termination point for next pass */
63

Keyboard Shortcuts

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