[Commits] [SCM] claws branch, master, updated. 3.14.0-3-g5fcfe9a
ticho at claws-mail.org
ticho at claws-mail.org
Tue Aug 9 23:41:08 CEST 2016
The branch, master has been updated
via 5fcfe9a0862961728a9450fd36d2eb99c32b217b (commit)
from e48b73905257071c561d1ae4dc4d1f040ee1fbd1 (commit)
Summary of changes:
src/plugins/vcalendar/libical/libical/icalrecur.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 5fcfe9a0862961728a9450fd36d2eb99c32b217b
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Tue Aug 9 23:38:32 2016 +0200
Fix a potential bug in vcalendar's libical.
Some compilers seem to understand this construction as an empty
for() cycle, followed by an unrelated block enclosed in braces.
We make sure the compiler does what we want by putting the
opening brace at the same line as for().
diff --git a/src/plugins/vcalendar/libical/libical/icalrecur.c b/src/plugins/vcalendar/libical/libical/icalrecur.c
index 9d3c96d..09ed9c0 100644
--- a/src/plugins/vcalendar/libical/libical/icalrecur.c
+++ b/src/plugins/vcalendar/libical/libical/icalrecur.c
@@ -1743,8 +1743,7 @@ int expand_year_days(struct icalrecur_iterator_impl* impl,short year)
/* FREQ=YEARLY; BYMONTHDAY=1,15; BYMONTH=10 */
for(j=0;impl->by_ptrs[BY_MONTH][j]!=ICAL_RECURRENCE_ARRAY_MAX;j++){
- for(k=0;impl->by_ptrs[BY_MONTH_DAY][k]!=ICAL_RECURRENCE_ARRAY_MAX;k++)
- {
+ for(k=0;impl->by_ptrs[BY_MONTH_DAY][k]!=ICAL_RECURRENCE_ARRAY_MAX;k++){
short month = impl->by_ptrs[BY_MONTH][j];
short month_day = impl->by_ptrs[BY_MONTH_DAY][k];
short doy;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list