diff options
author | Eric Sandeen <sandeen@redhat.com> | 2011-09-16 15:49:31 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-16 18:43:05 -0400 |
commit | 14ed2edb26e94b41ac06d81804b3e6af576b5c79 (patch) | |
tree | 60641e92ce0341e0e9344285f7e0ff4a3b974647 /e2fsck/dirinfo.c | |
parent | 1e003cc77d43ee01eeaae962ff6d264c9a74a363 (diff) | |
download | e2fsprogs-14ed2edb26e94b41ac06d81804b3e6af576b5c79.tar.gz |
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 <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/dirinfo.c')
-rw-r--r-- | e2fsck/dirinfo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/e2fsck/dirinfo.c b/e2fsck/dirinfo.c index 901235c7..ace5b4d8 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); |