diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-05-15 06:04:39 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-05-15 06:04:39 +0800 |
commit | 4393cb1895512cfa9cc9119f60861fbf229c8a99 (patch) | |
tree | b64d6d05dff79d7d5d118d35ff915f408c30f06f | |
parent | b9d38c709a95889a3dbc4993c0d7c488b6b0de85 (diff) | |
download | gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.gz gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.zst gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.zip |
Fixes #41579
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.
svn path=/trunk/; revision=21185
-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)); } |