[polari] room: Use strcmp() for name comparison
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] room: Use strcmp() for name comparison
- Date: Thu, 1 Oct 2015 16:20:02 +0000 (UTC)
commit de09d5d7bc43165a7cc648e56abdbd31a53ebe5d
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Oct 1 16:59:07 2015 +0200
room: Use strcmp() for name comparison
We don't need to check for %NULL here:
- TpChannel:identifier has been using the empty string instead of
%NULL for the uninitialized property for a long time
- channels from ObserveChannels()/HandleChannels() are already
prepared, so TpChannel:identifier *is* initialized
src/lib/polari-room.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index 8ddbaa7..18e8c3b 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -523,7 +523,7 @@ check_channel (PolariRoom *room,
account = tp_connection_get_account (tp_channel_get_connection (channel));
return account == priv->account &&
- g_strcmp0 (tp_channel_get_identifier (channel), priv->channel_name) == 0;
+ strcmp (tp_channel_get_identifier (channel), priv->channel_name) == 0;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]