diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-01 13:45:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-01 13:45:04 +0100 |
commit | c8e18ca12c66bc95a30a7d41a7aff245c352d2c2 (patch) | |
tree | 6a85c518925db63fc6d6972a1bf5fffaab988382 | |
parent | e936c6d1c501517a68404612235c79e0a3600fad (diff) | |
download | busybox-c8e18ca12c66bc95a30a7d41a7aff245c352d2c2.tar.gz |
remove now-unneeded memset
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/bb_askpass.c | 1 | ||||
-rw-r--r-- | loginutils/sulogin.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index bdb756659..bf4578050 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c @@ -55,7 +55,6 @@ char* FAST_FUNC bb_ask(const int fd, int timeout, const char *prompt) if (!passwd) passwd = xmalloc(sizeof_passwd); - memset(passwd, 0, sizeof_passwd); ret = passwd; i = 0; while (1) { diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 77eff9f8d..6e3d3b019 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -51,9 +51,6 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv) /* Clear dangerous stuff, set PATH */ sanitize_env_if_suid(); -// bb_ask() already handles this -// signal(SIGALRM, catchalarm); - pwd = getpwuid(0); if (!pwd) { goto auth_error; |