aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-07-22 21:09:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-07-22 21:09:32 +0800
commit1e7002dcb80baed55cef60886ec64fda65756153 (patch)
tree9ea42d685c812fd090b85d913bdcaba09e0179d9 /calendar
parent42d2869230bcf0557ea0addb9b17f1fc7c9dc7d2 (diff)
downloadgsoc2013-evolution-1e7002dcb80baed55cef60886ec64fda65756153.tar.gz
gsoc2013-evolution-1e7002dcb80baed55cef60886ec64fda65756153.tar.zst
gsoc2013-evolution-1e7002dcb80baed55cef60886ec64fda65756153.zip
Fixes #61776
2004-07-21 JP Rosevear <jpr@novell.com> Fixes #61776 * gui/e-calendar-table.c (clipboard_get_text_cb): make sure the text is not NULL svn path=/trunk/; revision=26702
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-calendar-table.c7
2 files changed, 11 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e80cb59db7..dc6d6d2a04 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,4 +1,11 @@
2004-07-21 JP Rosevear <jpr@novell.com>
+
+ Fixes #61776
+
+ * gui/e-calendar-table.c (clipboard_get_text_cb): make sure the
+ text is not NULL
+
+2004-07-21 JP Rosevear <jpr@novell.com>
Fixes #61738
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index a0688fa8b5..08e5f30393 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -838,7 +838,6 @@ e_calendar_table_copy_clipboard (ECalendarTable *cal_table)
static void
clipboard_get_text_cb (GtkClipboard *clipboard, const gchar *text, ECalendarTable *cal_table)
{
- char *comp_str;
icalcomponent *icalcomp;
char *uid;
ECalComponent *comp;
@@ -847,8 +846,10 @@ clipboard_get_text_cb (GtkClipboard *clipboard, const gchar *text, ECalendarTabl
g_return_if_fail (E_IS_CALENDAR_TABLE (cal_table));
- comp_str = (char *) text;
- icalcomp = icalparser_parse_string ((const char *) comp_str);
+ if (!text || !*text)
+ return;
+
+ icalcomp = icalparser_parse_string (text);
if (!icalcomp)
return;