mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 08:58:12 +01:00
Sync OpenBSD patchset 628:
Remove unnecessary comparison, pointed out by Tiago Cunha.
This commit is contained in:
parent
495a3056e9
commit
998d76c6b4
@ -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>
|
* 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);
|
return (NULL);
|
||||||
if ((pw = getpwnam(username)) != NULL)
|
if ((pw = getpwnam(username)) != NULL)
|
||||||
home = pw->pw_dir;
|
home = pw->pw_dir;
|
||||||
if (username != NULL)
|
xfree(username);
|
||||||
xfree(username);
|
|
||||||
}
|
}
|
||||||
if (home == NULL)
|
if (home == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user