diff options
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 5f36b4b7e..474148a68 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1563,10 +1563,12 @@ void empathy_sound_play (GtkWidget *widget, EmpathySound sound_id) { - EmpathySoundEntry *entry = &(sound_entries[sound_id]); + EmpathySoundEntry *entry; gboolean should_play = TRUE; - g_return_if_fail (entry->sound_id < LAST_EMPATHY_SOUND); + g_return_if_fail (sound_id < LAST_EMPATHY_SOUND); + + entry = &(sound_entries[sound_id]); g_return_if_fail (entry->sound_id == sound_id); if (entry->gconf_key != NULL) { @@ -1583,4 +1585,4 @@ empathy_sound_play (GtkWidget *widget, CA_PROP_EVENT_DESCRIPTION, gettext (entry->event_ca_description), NULL); } -}
\ No newline at end of file +} |