summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-31 18:47:04 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-31 18:47:04 +0000
commitf62f1306d674696bbc6d475fc53dd4a1b9d8f7bb (patch)
treee120d51067480240b7100e0bd3109f5d286f65eb /usr.bin
parentc9b56167851d1049fac2c2016aaa2b2451bdf204 (diff)
Remove unnecessary comparison, pointed out by Tiago Cunha.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-string.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-string.c b/usr.bin/tmux/cmd-string.c
index 96ad15c1e95..8327029fd28 100644
--- a/usr.bin/tmux/cmd-string.c
+++ b/usr.bin/tmux/cmd-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-string.c,v 1.12 2009/12/03 22:50:10 nicm Exp $ */
+/* $OpenBSD: cmd-string.c,v 1.13 2010/01/31 18:47:03 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -344,8 +344,7 @@ cmd_string_expand_tilde(const char *s, size_t *p)
return (NULL);
if ((pw = getpwnam(username)) != NULL)
home = pw->pw_dir;
- if (username != NULL)
- xfree(username);
+ xfree(username);
}
if (home == NULL)
return (NULL);