diff options
author | Milan Crha <mcrha@redhat.com> | 2009-10-30 01:09:32 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-10-30 01:09:32 +0800 |
commit | d474c030d7ddf3aadfb274368f7e2ac0128423a8 (patch) | |
tree | 61a16a478fddfb28c7eaeb0f11b6c24c9768194b | |
parent | bafba91e9d2e3eca69f06713ae6162e537047cf1 (diff) | |
download | gsoc2013-evolution-d474c030d7ddf3aadfb274368f7e2ac0128423a8.tar.gz gsoc2013-evolution-d474c030d7ddf3aadfb274368f7e2ac0128423a8.tar.zst gsoc2013-evolution-d474c030d7ddf3aadfb274368f7e2ac0128423a8.zip |
Bug #561843 - Properly check for filename being set, to not crash
-rw-r--r-- | 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 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); |