summaryrefslogtreecommitdiff
path: root/src/bytestream-factory.c
diff options
context:
space:
mode:
authorDafydd Harries <dafydd.harries@collabora.co.uk>2009-08-25 19:11:11 +0100
committerDafydd Harries <dafydd.harries@collabora.co.uk>2009-09-03 00:47:39 +0100
commit04ae5eb05c64f3ae165e972bab5631c9e882733f (patch)
tree45fb4031c38db0dabf0954cfc813c2b543abfd08 /src/bytestream-factory.c
parenta448bfc27e0259b772a6cf5b7efc048159cf63b7 (diff)
downloadtelepathy-gabble-04ae5eb05c64f3ae165e972bab5631c9e882733f.tar.gz
remove checks made redundant by gabble_decode_jid() changes
In particular, callers no longer need to check whether returned node and resource strings are empty.
Diffstat (limited to 'src/bytestream-factory.c')
-rw-r--r--src/bytestream-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytestream-factory.c b/src/bytestream-factory.c
index 255535e52..a44223004 100644
--- a/src/bytestream-factory.c
+++ b/src/bytestream-factory.c
@@ -974,7 +974,7 @@ bytestream_factory_iq_si_cb (LmMessageHandler *handler,
goto out;
}
- if (!peer_resource || peer_resource[0] == '\0')
+ if (!peer_resource)
{
DEBUG ("Got an SI IQ response from a JID without a resource."
"Ignoring.");
@@ -1885,7 +1885,7 @@ streaminit_reply_cb (GabbleConnection *conn,
goto END;
}
- if (peer_resource == NULL || peer_resource[0] == '\0')
+ if (peer_resource == NULL)
{
DEBUG ("Got an SI request from a JID without a resource; ignoring");
goto END;