diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-02-02 23:53:36 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-02-02 23:53:36 +0000 |
commit | 998d76c6b466a6e9426a183693634a08e9796ff8 (patch) | |
tree | 5fb57b37202f7ea17206f4f223cf54074e50257c /cmd-string.c | |
parent | 495a3056e98b8f67f6a7d47766f354b67d2622d9 (diff) |
Sync OpenBSD patchset 628:
Remove unnecessary comparison, pointed out by Tiago Cunha.
Diffstat (limited to 'cmd-string.c')
-rw-r--r-- | cmd-string.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-string.c b/cmd-string.c index b10ea6a8..b34c9a6c 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 <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); |