[polari] room: Remove unnecessary %NULL check
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] room: Remove unnecessary %NULL check
- Date: Thu, 1 Oct 2015 16:20:07 +0000 (UTC)
commit d989edd3b57b463000b00720d508be68e032c3dd
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Oct 1 17:18:37 2015 +0200
room: Remove unnecessary %NULL check
g_free handles %NULL just fine ...
src/lib/polari-room.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index 18e8c3b..62682d4 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -503,8 +503,7 @@ polari_room_set_channel_name (PolariRoom *room,
priv = room->priv;
- if (priv->channel_name)
- g_free (priv->channel_name);
+ g_free (priv->channel_name);
priv->channel_name = g_strdup (channel_name);
update_identifier (room);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]