Commit 58333aa1 authored by Xavier Claessens's avatar Xavier Claessens

Sanity checks for empathy_play_sounds.

svn path=/trunk/; revision=2102
parent 6ff6694e
......@@ -1566,7 +1566,8 @@ empathy_sound_play (GtkWidget *widget,
EmpathySoundEntry *entry = &(sound_entries[sound_id]);
gboolean should_play = TRUE;
g_assert (entry->sound_id == sound_id);
g_return_if_fail (entry->sound_id < LAST_EMPATHY_SOUND);
g_return_if_fail (entry->sound_id == sound_id);
if (entry->gconf_key != NULL) {
should_play = empathy_sound_pref_is_enabled (entry->gconf_key);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment