summaryrefslogtreecommitdiff
path: root/salut
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-04-12 16:52:07 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-04-12 16:52:07 +0100
commita4d99e69ecb9f2b8eb9b413ccde7b9a5560afe00 (patch)
tree0ea70489f919f987909d228a1677af414772f033 /salut
parent29ffc0c729e767e25438abdeadbce4238b4577b7 (diff)
message-channel: fix a few typos
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'salut')
-rw-r--r--salut/message-channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/salut/message-channel.c b/salut/message-channel.c
index 7491b14..1dac430 100644
--- a/salut/message-channel.c
+++ b/salut/message-channel.c
@@ -211,7 +211,7 @@ channel_message_stanza_callback (GObject *source_object,
GError *error = NULL;
stanza = wocky_porter_send_iq_finish (porter, result, &error);
- if (stanza != NULL)
+ if (stanza == NULL)
{
DEBUG ("Failed to send IQ: %s", error->message);
g_clear_error (&error);
@@ -294,7 +294,7 @@ parse_message_body (const gchar *body,
"Must be a of the ytstenut namespace");
node = NULL;
}
- if (wocky_strdiff (node->name, EL_YTSTENUT_MESSAGE))
+ if (node != NULL && wocky_strdiff (node->name, EL_YTSTENUT_MESSAGE))
{
g_set_error_literal (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Must be a <ytstenut:message> element");