[git commit master] remove now-unneeded memset

Denys Vlasenko vda.linux at googlemail.com
Mon Feb 1 12:45:04 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=c8e18ca12c66bc95a30a7d41a7aff245c352d2c2
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/bb_askpass.c   |    1 -
 loginutils/sulogin.c |    3 ---
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index bdb7566..bf45780 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 77eff9f..6e3d3b0 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;
-- 
1.6.3.3



More information about the busybox-cvs mailing list