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 /libical/src | |
parent | b9d38c709a95889a3dbc4993c0d7c488b6b0de85 (diff) | |
download | gsoc2013-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/src')
-rw-r--r-- | libical/src/libical/icalcomponent.c | 3 |
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)); } |