Fixed ical reference being reused

This commit is contained in:
Andreas Schneider 2018-04-01 20:25:44 +02:00
parent 6466653975
commit c221f09085
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ func (c *CalDAV) GetEvents() ([]CalDAVItem, error) {
result := make([]CalDAVItem, 0, len(ms.Response))
for _, p := range ms.Response {
item := CalDAVItem{p.HRef, &p.PropStat.Prop.CalendarData}
ical := p.PropStat.Prop.CalendarData
item := CalDAVItem{p.HRef, &ical}
result = append(result, item)
}