The check for NULL is not necessary before free.
This commit is contained in:
parent
127dc366ef
commit
637902b452
1 changed files with 1 additions and 2 deletions
3
surf.c
3
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
|
||||
|
|
Loading…
Reference in a new issue