mirror of
https://github.com/infinet/lunar-calendar.git
synced 2026-01-12 13:15:28 +08:00
Fixed uninitialized ‘month_day1’.
This commit is contained in:
@@ -181,6 +181,7 @@ int mark_month_day(struct lunarcal *lcs[])
|
||||
lc_start = newmoons[firstnm_offset];
|
||||
lc_end = solarterms[MAX_SOLARTERMS -1];
|
||||
jd = lc_start;
|
||||
month_day1 = 0;
|
||||
len = 0;
|
||||
while (jd < lc_end) { /* fill in days into array lcs */
|
||||
/* scan for month jd belongs */
|
||||
|
||||
Reference in New Issue
Block a user