aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 02900e69..68cd4b60 100644
--- a/parse.c
+++ b/parse.c
@@ -75,8 +75,9 @@ int parse_file(char* fname, FILE* f, vcalendar* cal) {
switch (handle_kv(cal, ev, &cline, line, &ctx)) {
case s_event:
- ev = malloc(sizeof(*ev));
- INIT(vevent, ev, fname);
+ RENEW(vevent, ev, fname);
+ // ev = malloc(sizeof(*ev));
+ // INIT(vevent, ev, fname);
break;
}
strbuf_soft_reset(&str);