From 2c48f517c1c41d7162e1d9fba89807f812ad3f5f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 11 Jul 2010 09:13:34 -0400 Subject: Fix some compiler warnings. --- plugins/mail-notification/mail-notification.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/mail-notification/mail-notification.c') diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index 0d3a76a0fb..efce1115ab 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -481,7 +481,7 @@ can_support_actions (void) static void new_notify_status (EMEventTargetFolder *t) { - gchar *msg, *safetext; + gchar *msg; gboolean new_icon = !status_icon; if (new_icon) { @@ -562,6 +562,8 @@ new_notify_status (EMEventTargetFolder *t) #ifdef HAVE_LIBNOTIFY /* Now check whether we're supposed to send notifications */ if (is_part_enabled (GCONF_KEY_STATUS_NOTIFICATION)) { + gchar *safetext; + safetext = g_markup_escape_text(msg, strlen(msg)); if (notify) { notify_notification_update ( -- cgit v1.2.3