From dabfd5e09030611fe35fc238bb0841851e13288c Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 31 Jan 2010 18:47:03 +0000 Subject: Remove unnecessary comparison, pointed out by Tiago Cunha. --- usr.bin/tmux/cmd-string.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux/cmd-string.c') 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 @@ -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); -- cgit v1.2.3-59-g8ed1b