From: Cristiano Giuffrida Date: Sat, 27 Dec 2014 15:07:45 +0000 (+0100) Subject: libvtreefs: fix naming bug X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=5a7def9a9457d6aa13f37ca9233b5ada39e4fcf6;p=minix.git libvtreefs: fix naming bug Change-Id: Ib8767cfef4206ed491855bace6dd8bd58b45b8ce --- diff --git a/minix/lib/libvtreefs/extra.c b/minix/lib/libvtreefs/extra.c index f283bfdd1..8855c75d7 100644 --- a/minix/lib/libvtreefs/extra.c +++ b/minix/lib/libvtreefs/extra.c @@ -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;