Don't initialize homedir value. When called this early, pw(8) has no

reasonable data for it.
This commit is contained in:
Jordan K. Hubbard 1997-02-18 01:50:51 +00:00
parent 1d90be277e
commit 9a1717b2df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22862
2 changed files with 0 additions and 2 deletions

View file

@ -533,7 +533,6 @@ completeUser(void)
if ((cp2 = strchr(cp, ':')) == NULL)
return;
*cp2++ = '\0';
strncpy(homedir, cp, sizeof homedir);
if (*cp2)
strncpy(shell, cp2, sizeof shell);
}

View file

@ -533,7 +533,6 @@ completeUser(void)
if ((cp2 = strchr(cp, ':')) == NULL)
return;
*cp2++ = '\0';
strncpy(homedir, cp, sizeof homedir);
if (*cp2)
strncpy(shell, cp2, sizeof shell);
}