From 50ff474bf88324c6adf6dbe65c4bce9b4240d928 Mon Sep 17 00:00:00 2001 From: Jedy Wang Date: Fri, 21 Sep 2007 03:23:23 +0000 Subject: ** Fixes bug #476124. 2007-09-21 Jedy Wang ** Fixes bug #476124. * calendar/gui/dialogs/comp-editor.c: Handle NULL pointer. svn path=/trunk/; revision=34287 --- calendar/gui/dialogs/comp-editor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index dec56852c7..d54c06347f 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -2362,6 +2362,8 @@ set_attachment_list (CompEditor *editor, GSList *attach_list) /* get url sans protocol and add it to the bar. * how to set the filename properly */ file_name = g_filename_from_uri (attach_filename, NULL, NULL); + if (!file_name) + continue; if (g_stat (file_name, &statbuf) < 0) { g_warning ("Cannot attach file %s: %s", file_name, g_strerror (errno)); -- cgit