diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2009-10-02 14:10:04 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@nokia.com> | 2009-10-16 14:36:36 +0300 |
commit | e2cc3f6ebe65f98171e07c6097c0bfa9171f6f0e (patch) | |
tree | 1ec4fe0b39ea824a8ab3a909d753a2f6995e561d /linux-user/linuxload.c | |
parent | 61322e91a177b7b79ac2df5a540fe67db2d9e2dd (diff) |
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/linuxload.c')
-rw-r--r-- | linux-user/linuxload.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |