roken: Do not pass NULL to getpwnam_r()
This commit is contained in:
@@ -156,7 +156,7 @@ roken_get_homedir(char *home, size_t homesz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_GETPWNAM_R
|
#ifdef HAVE_GETPWNAM_R
|
||||||
{
|
if (username) {
|
||||||
struct passwd pwd;
|
struct passwd pwd;
|
||||||
struct passwd *pwdp;
|
struct passwd *pwdp;
|
||||||
char buf[buflen];
|
char buf[buflen];
|
||||||
|
Reference in New Issue
Block a user