diff options
Diffstat (limited to 'libical')
-rw-r--r-- | libical/ChangeLog | 7 | ||||
-rw-r--r-- | libical/src/libical/icalcomponent.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog index 78b9f9a902..a08e9535a8 100644 --- a/libical/ChangeLog +++ b/libical/ChangeLog @@ -1,3 +1,10 @@ +2003-05-14 Rodrigo Moya <rodrigo@ximian.com> + + Fixes #41579 + + * src/libical/icalcomponent.c (icalcomponent_new_clone): don't add the + property if it's NULL. + 2003-05-07 Rodrigo Moya <rodrigo@ximian.com> Fixes crash in #41631 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)); } |