aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-05-29 18:12:37 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-05-29 18:12:37 +0200
commit65c543b8a6350ca6080589291a3f87f22c66a04e (patch)
tree52cf3c144fede00d15f5577810cbf8c01e9bc0d8
parentFix previous commit. (diff)
downloadcalp-65c543b8a6350ca6080589291a3f87f22c66a04e.tar.gz
calp-65c543b8a6350ca6080589291a3f87f22c66a04e.tar.xz
Stop adding copies of vcomponent to parent.
-rw-r--r--src/vcal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcal.c b/src/vcal.c
index 3c9885ba..74af44be 100644
--- a/src/vcal.c
+++ b/src/vcal.c
@@ -124,7 +124,8 @@ int vcomponent_copy(vcomponent* dest, vcomponent* src) {
PUSH(LLIST(vcomponent))(&dest->components, c);
}
- PUSH(vcomponent)(src->parent, dest);
+ dest->parent = src->parent;
+ // PUSH(vcomponent)(src->parent, dest);
return 0;
}