aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 23:18:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 23:18:36 +0100
commitd315216f7c51e077a2d0dfd5223651891899d11f (patch)
treef1227229a84a6a4bcf7e9bc12eda191a2069ee62 /src
parentFix GET(TRIE(T)) erroring when target was a neighbour. (diff)
downloadcalp-d315216f7c51e077a2d0dfd5223651891899d11f.tar.gz
calp-d315216f7c51e077a2d0dfd5223651891899d11f.tar.xz
Add empty constructor for vcomponent.
Diffstat (limited to 'src')
-rw-r--r--src/vcal.c10
1 files changed, 8 insertions, 2 deletions
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) {