Skip to content

Commit

Permalink
caldav_alarm:get_floatingtz() do not try to parse missing calendar-ti…
Browse files Browse the repository at this point in the history
…mezone as timezones
  • Loading branch information
dilyanpalauzov committed Aug 26, 2023
1 parent b88d909 commit 9c5e88e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imap/caldav_alarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,7 @@ static icaltimezone *get_floatingtz(const char *mailbox, const char *userid)
icaltimezone *floatingtz = NULL;

struct buf buf = BUF_INITIALIZER;
const char *annotname = DAV_ANNOT_NS "<" XML_NS_CALDAV ">calendar-timezone";
if (!annotatemore_lookupmask(mailbox, annotname, userid, &buf)) {
if (!annotatemore_lookupmask(mailbox, DAV_ANNOT_NS "<" XML_NS_CALDAV ">calendar-timezone", userid, &buf) && buf_len(&buf)) {
icalcomponent *comp = NULL;
comp = icalparser_parse_string(buf_cstring(&buf));
icalcomponent *subcomp =
Expand Down

0 comments on commit 9c5e88e

Please sign in to comment.