remove now-unneeded memset
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Feb 2010 12:45:04 +0000 (13:45 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Feb 2010 12:45:04 +0000 (13:45 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/bb_askpass.c
loginutils/sulogin.c

index bdb756659efe56a01299f4cf439cb8f20739d3d0..bf4578050db7ba93f0e1a41606a426349b141d55 100644 (file)
@@ -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) {
index 77eff9f8dc415b0395a4474c59eb17f1d54484a8..6e3d3b0190922c08ca11c6a366f450246a540e7b 100644 (file)
@@ -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;