From d474c030d7ddf3aadfb274368f7e2ac0128423a8 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 29 Oct 2009 18:09:32 +0100 Subject: Bug #561843 - Properly check for filename being set, to not crash --- plugins/mail-notification/mail-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index e6ff179222..b884b0272b 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -613,7 +613,7 @@ static void do_play_sound (gboolean beep, gboolean use_theme, const gchar *file) { if (!beep) { - if ( (file || *file) && !use_theme ) + if (!use_theme && file && *file) ca_context_play(mailnotification, 0, CA_PROP_MEDIA_FILENAME, file, NULL); -- cgit