libvtreefs: fix naming bug

Change-Id: Ib8767cfef4206ed491855bace6dd8bd58b45b8ce
This commit is contained in:
Cristiano Giuffrida 2014-12-27 16:07:45 +01:00 committed by David van Moolenbroek
parent a8f606defa
commit 5a7def9a94

View file

@ -18,10 +18,10 @@ int
init_extra(unsigned int nr_inodes, size_t inode_extra)
{
if (extra_size == 0)
if (inode_extra == 0)
return OK;
if ((extra_ptr = malloc(nr_inodes * inode_extra)) == NULL)
if ((extra_ptr = calloc(nr_inodes, inode_extra)) == NULL)
return ENOMEM;
extra_size = inode_extra;