[Telepathy-commits] [telepathy-gabble/master] conn-olpc: check_query_reply_msg: allow context to be NULL if we don't want to return a D-Bus error
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:01:58 PDT 2008
20071212111809-7fe3f-92ea9dc5c5c0494ec68c750111f11f5a96c9b480.gz
---
src/conn-olpc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index 85a4eb1..ea69258 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -307,6 +307,9 @@ check_query_reply_msg (LmMessage *reply_msg,
LmMessageNode *error_node;
GError *error = NULL;
+ if (context == NULL)
+ return FALSE;
+
error_node = lm_message_node_get_child (reply_msg->node, "error");
if (error_node != NULL)
{
--
1.5.6.5
More information about the Telepathy-commits
mailing list