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>
This commit is contained in:
Paul Bolle 2009-10-02 14:10:04 +02:00 committed by Riku Voipio
parent 61322e91a1
commit e2cc3f6ebe
1 changed files with 0 additions and 1 deletions

View File

@ -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);