The check for NULL is not necessary before free.

This commit is contained in:
Christoph Lohmann 2014-02-06 16:49:26 +01:00
parent 127dc366ef
commit 637902b452

3
surf.c
View File

@ -685,8 +685,7 @@ loaduri(Client *c, const Arg *arg) {
c->title = copystr(&c->title, u); c->title = copystr(&c->title, u);
updatetitle(c); updatetitle(c);
} }
if(u != NULL) g_free(u);
g_free(u);
} }
static void static void