remove now-unneeded memset
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e936c6d1c5
commit
c8e18ca12c
@ -55,7 +55,6 @@ char* FAST_FUNC bb_ask(const int fd, int timeout, const char *prompt)
|
|||||||
|
|
||||||
if (!passwd)
|
if (!passwd)
|
||||||
passwd = xmalloc(sizeof_passwd);
|
passwd = xmalloc(sizeof_passwd);
|
||||||
memset(passwd, 0, sizeof_passwd);
|
|
||||||
ret = passwd;
|
ret = passwd;
|
||||||
i = 0;
|
i = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -51,9 +51,6 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* Clear dangerous stuff, set PATH */
|
/* Clear dangerous stuff, set PATH */
|
||||||
sanitize_env_if_suid();
|
sanitize_env_if_suid();
|
||||||
|
|
||||||
// bb_ask() already handles this
|
|
||||||
// signal(SIGALRM, catchalarm);
|
|
||||||
|
|
||||||
pwd = getpwuid(0);
|
pwd = getpwuid(0);
|
||||||
if (!pwd) {
|
if (!pwd) {
|
||||||
goto auth_error;
|
goto auth_error;
|
||||||
|
Loading…
Reference in New Issue
Block a user