From d315216f7c51e077a2d0dfd5223651891899d11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 22 Mar 2019 23:18:36 +0100 Subject: Add empty constructor for vcomponent. --- src/vcal.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/vcal.c b/src/vcal.c index 305275e7..fdb68d54 100644 --- a/src/vcal.c +++ b/src/vcal.c @@ -31,9 +31,15 @@ #undef TYPE INIT_F(vcomponent) { - (void) self; - ERR("Do not use"); + INIT(TRIE(content_line), &self->clines); + INIT(LLIST(vcomponent), &self->components); + + self->type = NULL; + self->parent = NULL; + self->scm = NULL; + return 0; + } INIT_F(vcomponent, const char* type) { -- cgit v1.2.3