From: Christoph Lohmann <20h@r-36.net> Date: Thu, 6 Feb 2014 15:49:26 +0000 (+0100) Subject: The check for NULL is not necessary before free. X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=commitdiff_plain;h=637902b452c723e8d5fdb714e8a38861e9c9f64e The check for NULL is not necessary before free. --- diff --git a/surf.c b/surf.c index 1ec4c62..2e9c38d 100644 --- 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