empathy r1704 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Nov 11 15:27:52 2008
New Revision: 1704
URL: http://svn.gnome.org/viewvc/empathy?rev=1704&view=rev

Log:
Use two g_asserts rather than g_assert (foo && bar).

Modified:
   trunk/libempathy-gtk/empathy-avatar-chooser.c

Modified: trunk/libempathy-gtk/empathy-avatar-chooser.c
==============================================================================
--- trunk/libempathy-gtk/empathy-avatar-chooser.c	(original)
+++ trunk/libempathy-gtk/empathy-avatar-chooser.c	Tue Nov 11 15:27:52 2008
@@ -224,7 +224,8 @@
 	priv = GET_PRIV (object);
 
 	avatar_chooser_set_account (EMPATHY_AVATAR_CHOOSER (object), NULL);
-	g_assert (priv->account == NULL && priv->tp_contact_factory == NULL);
+	g_assert (priv->account == NULL);
+	g_assert (priv->tp_contact_factory == NULL);
 
 	g_object_unref (priv->contact_factory);
 
@@ -367,7 +368,8 @@
 		return TRUE;
 	} else {
 		/* check we're not leaking. */
-		g_assert (name == NULL && type == NULL);
+		g_assert (name == NULL);
+		g_assert (type == NULL);
 		return FALSE;
 	}
 }



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