Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e003cc
)
e2fsck: remove extraneous memset
author
Eric Sandeen
<sandeen@redhat.com>
Fri, 16 Sep 2011 20:49:31 +0000
(15:49 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 16 Sep 2011 22:43:05 +0000
(18:43 -0400)
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>
e2fsck/dirinfo.c
patch
|
blob
|
history
diff --git
a/e2fsck/dirinfo.c
b/e2fsck/dirinfo.c
index
901235c
..
ace5b4d
100644
(file)
--- 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);