[gnome-bluetooth] lib: Add assertion for XML parsing



commit 585ecaf54d0385dd6733b8b10c18baec83956b91
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 28 12:34:40 2011 +0100

    lib: Add assertion for XML parsing

 lib/bluetooth-agent.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-agent.c b/lib/bluetooth-agent.c
index 1b35502..b0e7ffc 100644
--- a/lib/bluetooth-agent.c
+++ b/lib/bluetooth-agent.c
@@ -261,6 +261,7 @@ static void bluetooth_agent_init(BluetoothAgent *agent)
 	DBG("agent %p", agent);
 
 	priv->introspection_data = g_dbus_node_info_new_for_xml (introspection_xml, NULL);
+	g_assert (priv->introspection_data);
 	priv->conn = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL);
 }
 



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