aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src
diff options
context:
space:
mode:
Diffstat (limited to 'libical/src')
-rw-r--r--libical/src/libical/icalcomponent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libical/src/libical/icalcomponent.c b/libical/src/libical/icalcomponent.c
index 4829034f28..ce819ddbd6 100644
--- a/libical/src/libical/icalcomponent.c
+++ b/libical/src/libical/icalcomponent.c
@@ -193,7 +193,8 @@ icalcomponent* icalcomponent_new_clone(icalcomponent* component)
itr = pvl_next(itr))
{
p = (icalproperty*)pvl_data(itr);
- icalcomponent_add_property(new,icalproperty_new_clone(p));
+ if (p != 0)
+ icalcomponent_add_property(new,icalproperty_new_clone(p));
}