empathy r2334 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Jan 30 17:34:35 2009
New Revision: 2334
URL: http://svn.gnome.org/viewvc/empathy?rev=2334&view=rev

Log:
Added argument checking to non-static functions.

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy-gtk/empathy-contact-selector.c

Modified: trunk/libempathy-gtk/empathy-contact-selector.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-selector.c	(original)
+++ trunk/libempathy-gtk/empathy-contact-selector.c	Fri Jan 30 17:34:35 2009
@@ -56,6 +56,8 @@
   EmpathyContact *contact = NULL;
   GtkTreeIter iter;
 
+  g_return_val_if_fail (EMPATHY_IS_CONTACT_SELECTOR (selector), NULL);
+
   if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (selector), &iter))
     return NULL;
 
@@ -372,5 +374,7 @@
 EmpathyContactSelector *
 empathy_contact_selector_new (EmpathyContactListStore *store)
 {
+  g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST_STORE (store), NULL);
+
   return g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]