From c29bfd2ff30016faa970e903fcbb488a86335d88 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 31 Jan 2010 18:47:03 +0000 Subject: [PATCH] Remove unnecessary comparison, pointed out by Tiago Cunha. --- cmd-string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd-string.c b/cmd-string.c index 27b051b1..a5dabb56 100644 --- a/cmd-string.c +++ b/cmd-string.c @@ -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);