[Telepathy-commits] [telepathy-doc/master] list_contacts: exit at once if tp_connection_manager_new fails

Will Thompson will.thompson at collabora.co.uk
Wed Oct 29 03:59:39 PDT 2008


---
 docs/examples/list_contacts/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/docs/examples/list_contacts/main.c b/docs/examples/list_contacts/main.c
index 2449907..ea305d0 100644
--- a/docs/examples/list_contacts/main.c
+++ b/docs/examples/list_contacts/main.c
@@ -128,6 +128,7 @@ main (int argc, char **argv)
     {
       g_printf ("tp_connection_manager_new() failed: %s\n", error->message);
       g_clear_error (&error);
+      return 1;
     }
 
   /* Get the connection : */
-- 
1.5.6.5




More information about the Telepathy-commits mailing list