libvtreefs: fix naming bug

Change-Id: Ib8767cfef4206ed491855bace6dd8bd58b45b8ce
This commit is contained in:
Cristiano Giuffrida
2015-06-29 10:56:59 +00:00
committed by David van Moolenbroek
parent a8f606defa
commit 5a7def9a94
+2 -2
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;