[telepathy-gabble/master] Use entry != NULL instead of just entry.

Mike Ruprecht mike.ruprecht at collabora.co.uk
Mon Dec 7 07:36:14 PST 2009


---
 tests/twisted/test-resolver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/test-resolver.c b/tests/twisted/test-resolver.c
index 78e161e..a292ad8 100644
--- a/tests/twisted/test-resolver.c
+++ b/tests/twisted/test-resolver.c
@@ -71,7 +71,7 @@ find_fake_services (TestResolver *tr, const char *name)
   for (fake = tr->fake_SRV; fake != NULL; fake = g_list_next (fake))
     {
       fake_serv *entry = fake->data;
-      if (entry && !g_strcmp0 (entry->key, name))
+      if (entry != NULL && !g_strcmp0 (entry->key, name))
           rval = g_list_append (rval, g_srv_target_copy (entry->srv));
     }
   return rval;
@@ -86,7 +86,7 @@ find_fake_hosts (TestResolver *tr, const char *name)
   for (fake = tr->fake_A; fake != NULL; fake = g_list_next (fake))
     {
       fake_host *entry = fake->data;
-      if (entry && !g_strcmp0 (entry->key, name))
+      if (entry != NULL && !g_strcmp0 (entry->key, name))
         rval =
           g_list_append (rval, g_inet_address_new_from_string (entry->addr));
     }
-- 
1.5.6.5




More information about the telepathy-commits mailing list