tThe check for NULL is not necessary before free. - surf - customized build of surf, the suckless webkit browser (HTM) git clone git://src.adamsgaard.dk/surf (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 637902b452c723e8d5fdb714e8a38861e9c9f64e (DIR) parent 127dc366efeda9afc6086be67b60979af1d71205 (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Thu, 6 Feb 2014 16:49:26 +0100 The check for NULL is not necessary before free. Diffstat: M surf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- (DIR) diff --git a/surf.c b/surf.c t@@ -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