libvtreefs: fix naming bug
Change-Id: Ib8767cfef4206ed491855bace6dd8bd58b45b8ce
This commit is contained in:
parent
a8f606defa
commit
5a7def9a94
1 changed files with 2 additions and 2 deletions
|
@ -18,10 +18,10 @@ int
|
||||||
init_extra(unsigned int nr_inodes, size_t inode_extra)
|
init_extra(unsigned int nr_inodes, size_t inode_extra)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (extra_size == 0)
|
if (inode_extra == 0)
|
||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
if ((extra_ptr = malloc(nr_inodes * inode_extra)) == NULL)
|
if ((extra_ptr = calloc(nr_inodes, inode_extra)) == NULL)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
|
||||||
extra_size = inode_extra;
|
extra_size = inode_extra;
|
||||||
|
|
Loading…
Reference in a new issue