roken: Do not pass NULL to getpwnam_r()

This commit is contained in:
Nicolas Williams
2021-09-15 10:41:32 -05:00
parent 5702bd5b77
commit 0e8323ccee

View File

@@ -156,7 +156,7 @@ roken_get_homedir(char *home, size_t homesz)
}
#ifdef HAVE_GETPWNAM_R
{
if (username) {
struct passwd pwd;
struct passwd *pwdp;
char buf[buflen];