Fossil SCM

Fix a harmless compiler warning in timeline.c.

drh 2018-05-04 13:52 trunk
Commit 8d1cb59fe074bb0d6fdd8371495434ea1275f4d020789496cb1cc5a5066c3c8b
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1417,11 +1417,11 @@
14171417
const char *zYearMonth = P("ym"); /* Show check-ins for the given YYYY-MM */
14181418
const char *zYearWeek = P("yw"); /* Check-ins for YYYY-WW (week-of-year) */
14191419
char *zYearWeekStart = 0; /* YYYY-MM-DD for start of YYYY-WW */
14201420
const char *zDay = P("ymd"); /* Check-ins for the day YYYY-MM-DD */
14211421
const char *zNDays = P("days"); /* Show events over the previous N days */
1422
- int nDays; /* Numeric value for zNDays */
1422
+ int nDays = 0; /* Numeric value for zNDays */
14231423
const char *zChng = P("chng"); /* List of GLOBs for files that changed */
14241424
int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
14251425
int renameOnly = P("namechng")!=0; /* Show only check-ins that rename files */
14261426
int forkOnly = PB("forks"); /* Show only forks and their children */
14271427
int bisectOnly = PB("bisect"); /* Show the check-ins of the bisect */
14281428
--- src/timeline.c
+++ src/timeline.c
@@ -1417,11 +1417,11 @@
1417 const char *zYearMonth = P("ym"); /* Show check-ins for the given YYYY-MM */
1418 const char *zYearWeek = P("yw"); /* Check-ins for YYYY-WW (week-of-year) */
1419 char *zYearWeekStart = 0; /* YYYY-MM-DD for start of YYYY-WW */
1420 const char *zDay = P("ymd"); /* Check-ins for the day YYYY-MM-DD */
1421 const char *zNDays = P("days"); /* Show events over the previous N days */
1422 int nDays; /* Numeric value for zNDays */
1423 const char *zChng = P("chng"); /* List of GLOBs for files that changed */
1424 int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
1425 int renameOnly = P("namechng")!=0; /* Show only check-ins that rename files */
1426 int forkOnly = PB("forks"); /* Show only forks and their children */
1427 int bisectOnly = PB("bisect"); /* Show the check-ins of the bisect */
1428
--- src/timeline.c
+++ src/timeline.c
@@ -1417,11 +1417,11 @@
1417 const char *zYearMonth = P("ym"); /* Show check-ins for the given YYYY-MM */
1418 const char *zYearWeek = P("yw"); /* Check-ins for YYYY-WW (week-of-year) */
1419 char *zYearWeekStart = 0; /* YYYY-MM-DD for start of YYYY-WW */
1420 const char *zDay = P("ymd"); /* Check-ins for the day YYYY-MM-DD */
1421 const char *zNDays = P("days"); /* Show events over the previous N days */
1422 int nDays = 0; /* Numeric value for zNDays */
1423 const char *zChng = P("chng"); /* List of GLOBs for files that changed */
1424 int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
1425 int renameOnly = P("namechng")!=0; /* Show only check-ins that rename files */
1426 int forkOnly = PB("forks"); /* Show only forks and their children */
1427 int bisectOnly = PB("bisect"); /* Show the check-ins of the bisect */
1428

Keyboard Shortcuts

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