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

This commit is contained in:
Milan Crha
2009-10-29 18:09:32 +01:00
parent bafba91e9d
commit d474c030d7

View File

@ -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);