[polari] room: Remove unnecessary %NULL check



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]