]> Skullheadx's Git Forge - surf.git/commitdiff
The check for NULL is not necessary before free.
authorChristoph Lohmann <20h@r-36.net>
Thu, 6 Feb 2014 15:49:26 +0000 (16:49 +0100)
committerChristoph Lohmann <20h@r-36.net>
Thu, 6 Feb 2014 15:49:26 +0000 (16:49 +0100)
surf.c

diff --git a/surf.c b/surf.c
index 1ec4c62642a9ec0d207d04b4debe4cb95a374a01..2e9c38d2660f3168ae95875c27bcd71b7300b077 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -685,8 +685,7 @@ loaduri(Client *c, const Arg *arg) {
                c->title = copystr(&c->title, u);
                updatetitle(c);
        }
-       if(u != NULL)
-               g_free(u);
+       g_free(u);
 }
 
 static void