summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-string.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-01-31 18:47:03 +0000
committernicm <nicm@openbsd.org>2010-01-31 18:47:03 +0000
commitdabfd5e09030611fe35fc238bb0841851e13288c (patch)
treec063f0efc14221d501613a981bd78800c78069ad /usr.bin/tmux/cmd-string.c
parentAdd option WSCONS_COMPAT_RAWKBD for X. ok miod@. (diff)
downloadwireguard-openbsd-dabfd5e09030611fe35fc238bb0841851e13288c.tar.xz
wireguard-openbsd-dabfd5e09030611fe35fc238bb0841851e13288c.zip
Remove unnecessary comparison, pointed out by Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux/cmd-string.c')
-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);