aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Xin <jedy.wang@sun.com>2007-08-22 13:48:36 +0800
committerJedy Jedy Wang <jedywang@src.gnome.org>2007-08-22 13:48:36 +0800
commit67aba9a455c9018fdf23ce8e4dd51fde220af676 (patch)
treeda723ed98997de2e239fc1029927983bc88d1159
parente4d88f78cd9a70b0f9644b0b818b328a70866286 (diff)
downloadgsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar.gz
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar.bz2
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar.lz
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar.xz
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.tar.zst
gsoc2013-evolution-67aba9a455c9018fdf23ce8e4dd51fde220af676.zip
** Fix for bug #468804
2007-08-22 Wang Xin <jedy.wang@sun.com> ** Fix for bug #468804 * plugins/mail-to-task/mail-to-task.c: Handle NUll pointer. svn path=/trunk/; revision=34063
-rw-r--r--ChangeLog6
-rw-r--r--plugins/mail-to-task/mail-to-task.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 781c16cb57..e77526ac47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-22 Wang Xin <jedy.wang@sun.com>
+
+ ** Fix for bug #468804
+
+ * plugins/mail-to-task/mail-to-task.c: Handle NUll pointer.
+
2007-08-13 Srinivasa Ragavan <sragavan@novell.com>
* NEWS, configure.in: Evolution 2.11.90 release
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index 0cddb62bf2..0cabb9b978 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -199,6 +199,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message)
int parts, i;
GSList *list = NULL;
const char *uid;
+ char *store_uri;
char *store_dir;
CamelDataWrapper *content;
@@ -211,7 +212,10 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message)
return;
e_cal_component_get_uid (comp, &uid);
- store_dir = g_filename_from_uri (e_cal_get_local_attachment_store (client), NULL, NULL);
+ store_uri = e_cal_get_local_attachment_store (client);
+ if (!store_uri)
+ return;
+ store_dir = g_filename_from_uri (store_uri, NULL, NULL);
for (i = 1; i < parts; i++)
{