From: Eric Sandeen Date: Fri, 16 Sep 2011 20:49:31 +0000 (-0500) Subject: e2fsck: remove extraneous memset X-Git-Tag: v1.42-WIP-0925~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=14ed2edb26e94b41ac06d81804b3e6af576b5c79;p=tools%2Fe2fsprogs.git e2fsck: remove extraneous memset e2fsck_allocate_memory() already sets allocated memory to 0, so remove the explicit memset. Especially since it was setting the wrong size (iter not *iter) Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o --- diff --git a/e2fsck/dirinfo.c b/e2fsck/dirinfo.c index 901235c..ace5b4d 100644 --- a/e2fsck/dirinfo.c +++ b/e2fsck/dirinfo.c @@ -318,7 +318,6 @@ extern struct dir_info_iter *e2fsck_dir_info_iter_begin(e2fsck_t ctx) iter = e2fsck_allocate_memory(ctx, sizeof(struct dir_info_iter), "dir_info iterator"); - memset(iter, 0, sizeof(iter)); if (db->tdb) iter->tdb_iter = tdb_firstkey(db->tdb);