diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-05-25 11:15:30 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-05-25 11:15:48 +0100 |
commit | 3360f5abbe98c28e6a2e6dfd5fe9553c80993e12 (patch) | |
tree | d7171fb8ebb40ef6f8145a5a0e1b6865930e2bb5 | |
parent | 4d2d6969223b71f58e8968b089aae016fca2e609 (diff) |
tubes-channel: fix 'might be used unset' warning from gcc 4.7
Thanks for the heads up, GCC!
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/tubes-channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tubes-channel.c b/src/tubes-channel.c index 834c6ad3..1d7a1968 100644 --- a/src/tubes-channel.c +++ b/src/tubes-channel.c @@ -659,8 +659,10 @@ salut_tubes_channel_muc_message_received (SalutTubesChannel *self, stream_id = wocky_node_get_attribute (tube_node, "stream-id"); - extract_tube_information (self, tube_node, NULL, - NULL, NULL, NULL, &tube_id); + if (!extract_tube_information (self, tube_node, NULL, + NULL, NULL, NULL, &tube_id)) + continue; + tube = g_hash_table_lookup (priv->tubes, GUINT_TO_POINTER (tube_id)); if (tube == NULL) |