From 998d76c6b466a6e9426a183693634a08e9796ff8 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Tue, 2 Feb 2010 23:53:36 +0000 Subject: [PATCH] Sync OpenBSD patchset 628: Remove unnecessary comparison, pointed out by Tiago Cunha. --- cmd-string.c | 5 ++--- 1 file 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 @@ -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);