diff options
author | Doug Christman <douglaschristman@gmail.com> | 2017-02-12 00:39:17 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-12 00:39:17 -0500 |
commit | 963e3d8373a94af8093e3ca674452b366c12ac09 (patch) | |
tree | 10c651ae71c3d9c8ee09db33d2755c99c46a4484 /src/basic/calendarspec.c | |
parent | 0d7578dc30b9c9e8eb213e517d4928f222764a44 (diff) |
calendarspec: fix duplicate detection (#5310)
a2eb5ea79c added a new field to `CalendarComponent`; update
`normalize_chain` to compare all fields when dropping duplicates
Diffstat (limited to 'src/basic/calendarspec.c')
-rw-r--r-- | src/basic/calendarspec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c index 3fa1c51ace..2323eb8555 100644 --- a/src/basic/calendarspec.c +++ b/src/basic/calendarspec.c @@ -116,8 +116,7 @@ static void normalize_chain(CalendarComponent **c) { /* Drop non-unique entries */ for (k = n-1; k > 0; k--) { - if (b[k-1]->start == next->start && - b[k-1]->repeat == next->repeat) { + if (component_compare(&b[k-1], &next) == 0) { free(b[k-1]); continue; } |