summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
authortcunha <tcunha>2010-02-02 23:53:36 (GMT)
committer tcunha <tcunha>2010-02-02 23:53:36 (GMT)
commitb2d2de7de7b6f0c431fa956824d72a010dc18170 (patch) (side-by-side diff)
tree5fe1d1f4d3f96812b072c45a952208b2712c4b5a /cmd-string.c
parentfc388cd47db66b5673507e02a9e43fb07080922c (diff)
downloadtmux-old-b2d2de7de7b6f0c431fa956824d72a010dc18170.zip
tmux-old-b2d2de7de7b6f0c431fa956824d72a010dc18170.tar.gz
tmux-old-b2d2de7de7b6f0c431fa956824d72a010dc18170.tar.bz2
Sync OpenBSD patchset 628:
Remove unnecessary comparison, pointed out by Tiago Cunha.
Diffstat (limited to 'cmd-string.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-string.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-string.c b/cmd-string.c
index dea75a8..4e49971 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-string.c,v 1.29 2009/12/04 22:14:47 tcunha Exp $ */
+/* $Id: cmd-string.c,v 1.30 2010/02/02 23:53:36 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <[email protected]>
@@ -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);