summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ical.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ical.c b/src/ical.c
index c2c8c5b..d8ad997 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -676,10 +676,10 @@ static long ical_compute_rpt_until(long start, ical_rpt_t * rpt)
static char *ical_get_value(char *p)
{
for (; *p != ':'; p++) {
+ if (*p == '"')
+ for (p++; *p != '"' && *p != '\0'; p++);
if (*p == '\0')
return NULL;
- if (*p == '"')
- for (p++; *p != '"'; p++);
}
return p + 1;