mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Remove unnecessary comparison, pointed out by Tiago Cunha.
This commit is contained in:
parent
383c682563
commit
c29bfd2ff3
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue