[evolution] Bug #561843 - Properly check for filename being set, to not crash



commit d474c030d7ddf3aadfb274368f7e2ac0128423a8
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 29 18:09:32 2009 +0100

    Bug #561843 - Properly check for filename being set, to not crash

 plugins/mail-notification/mail-notification.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index e6ff179..b884b02 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]