[empathy] contact_list_store_get_contact_status_icon_with_icon_name: early return if icon_name is NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] contact_list_store_get_contact_status_icon_with_icon_name: early return if icon_name is NULL
- Date: Mon, 11 Jan 2010 17:17:14 +0000 (UTC)
commit 62ba54af21d4f9ca133824a7fda636ab9a80a139
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Jan 11 17:02:43 2010 +0000
contact_list_store_get_contact_status_icon_with_icon_name: early return if icon_name is NULL
libempathy-gtk/empathy-contact-list-store.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c
index d284b94..1309836 100644
--- a/libempathy-gtk/empathy-contact-list-store.c
+++ b/libempathy-gtk/empathy-contact-list-store.c
@@ -1724,6 +1724,9 @@ contact_list_store_get_contact_status_icon (EmpathyContactListStore *store,
const gchar *status_icon_name = NULL;
status_icon_name = empathy_icon_name_for_contact (contact);
+ if (status_icon_name == NULL)
+ return NULL;
+
pixbuf_status = contact_list_store_get_contact_status_icon_with_icon_name (
store,
contact,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]