diff options
author | <robert.mcqueen@collabora.co.uk> | 2006-07-10 18:55:31 +0000 |
---|---|---|
committer | <robert.mcqueen@collabora.co.uk> | 2006-07-10 18:55:31 +0000 |
commit | 1c06ff7f6875de50ff10c65c74ab0d88d05cab0c (patch) | |
tree | e885460b2f8c9199e6e29a17d03696031dc9b92c /src/gabble-connection.c | |
parent | 29992b52e1f5d1cf937afb9aff8cb861261a42b4 (diff) |
fix possible NULL strcmp in MUC server discovery
Diffstat (limited to 'src/gabble-connection.c')
-rw-r--r-- | src/gabble-connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gabble-connection.c b/src/gabble-connection.c index 7fae71030..32a1ec2fb 100644 --- a/src/gabble-connection.c +++ b/src/gabble-connection.c @@ -3132,8 +3132,8 @@ service_info_cb (GabbleDisco *disco, type = lm_message_node_get_attribute (identity, "type"); g_debug ("%s: got identity, category=%s, type=%s", G_STRFUNC, category, type); - if (category && 0 == strcmp (category, "conference") - && 0 == strcmp (type, "text")) + if (category && 0 == strcmp (category, "conference") && + type && 0 == strcmp (type, "text")) { for (feature = result->children; feature; feature = feature->next) { |