projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a202c9
)
Minor size shrinkage.
author
Rob Landley
<rob@landley.net>
Tue, 13 Jun 2006 15:12:14 +0000
(15:12 -0000)
committer
Rob Landley
<rob@landley.net>
Tue, 13 Jun 2006 15:12:14 +0000
(15:12 -0000)
util-linux/fsck_minix.c
patch
|
blob
|
history
diff --git
a/util-linux/fsck_minix.c
b/util-linux/fsck_minix.c
index 422cae3dedbfa4db5773ebe0228423e9c425d720..a5d52b26c46fb9ddaaa1e2e875e83d38c21c68a7 100644
(file)
--- a/
util-linux/fsck_minix.c
+++ b/
util-linux/fsck_minix.c
@@
-677,10
+677,8
@@
static void read_superblock(void)
static void read_tables(void)
{
- inode_map = xmalloc(IMAPS * BLOCK_SIZE);
- zone_map = xmalloc(ZMAPS * BLOCK_SIZE);
- memset(inode_map, 0, IMAPS * BLOCK_SIZE);
- memset(zone_map, 0, ZMAPS * BLOCK_SIZE);
+ inode_map = xzalloc(IMAPS * BLOCK_SIZE);
+ zone_map = xzalloc(ZMAPS * BLOCK_SIZE);
inode_buffer = xmalloc(INODE_BUFFER_SIZE);
inode_count = xmalloc(INODES + 1);
zone_count = xmalloc(ZONES);