From e2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Fri, 2 Oct 2009 14:10:04 +0200 Subject: [PATCH] linux-user: don't zero a buffer twice prepare_binprm() zeroes bprm->buf. That buffer is already zeroed in main() and hasn't been touched since so that is not necessary. Signed-off-by: Paul Bolle Signed-off-by: Riku Voipio --- linux-user/linuxload.c | 1 - 1 file changed, 1 deletion(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index 4091bdcccc..2d778a2ced 100644 --- a/linux-user/linuxload.c +++ b/linux-user/linuxload.c @@ -96,7 +96,6 @@ static int prepare_binprm(struct linux_binprm *bprm) } } - memset(bprm->buf, 0, sizeof(bprm->buf)); retval = lseek(bprm->fd, 0L, SEEK_SET); if(retval >= 0) { retval = read(bprm->fd, bprm->buf, 128);