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
1 changed files with 1 additions and 2 deletions

3
surf.c
View File

@ -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