aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-05-15 06:04:39 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-05-15 06:04:39 +0800
commit4393cb1895512cfa9cc9119f60861fbf229c8a99 (patch)
treeb64d6d05dff79d7d5d118d35ff915f408c30f06f /libical
parentb9d38c709a95889a3dbc4993c0d7c488b6b0de85 (diff)
downloadgsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar
gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.gz
gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.bz2
gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.lz
gsoc2013-evolution-4393cb1895512cfa9cc9119f60861fbf229c8a99.tar.xz
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
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog7
-rw-r--r--libical/src/libical/icalcomponent.c3
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));
}