aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2009-10-02 14:10:04 +0200
committerRiku Voipio <riku.voipio@nokia.com>2009-10-16 14:36:36 +0300
commite2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e (patch)
tree1ec4fe0b39ea824a8ab3a909d753a2f6995e561d /linux-user
parentlinux-user: fix ppc target_stat64 st_blocks layout (diff)
downloadqemu-kvm-e2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e.tar.gz
qemu-kvm-e2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e.tar.bz2
qemu-kvm-e2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e.zip
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 <pebolle@tiscali.nl> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/linuxload.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
index 4091bdccc..2d778a2ce 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);