summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2014-02-06 16:49:26 +0100
committerChristoph Lohmann <20h@r-36.net>2014-02-06 16:49:26 +0100
commit637902b452c723e8d5fdb714e8a38861e9c9f64e (patch)
treeaed58e49e1e662c8990ea405997addf3c650f372 /surf.c
parent127dc366efeda9afc6086be67b60979af1d71205 (diff)
downloadsurf-637902b452c723e8d5fdb714e8a38861e9c9f64e.tar.gz
surf-637902b452c723e8d5fdb714e8a38861e9c9f64e.tar.bz2
surf-637902b452c723e8d5fdb714e8a38861e9c9f64e.zip
The check for NULL is not necessary before free.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c3
1 files changed, 1 insertions, 2 deletions
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