summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>2015-08-19 16:28:52 +0800
committerBrian Norris <computersforpeace@gmail.com>2015-08-19 09:22:52 -0700
commitd583d1da01eb0a3e38f18dfc8eec0dde07be8320 (patch)
tree5f7131fa78bdd9b083b00404cda539f1d1d878f3
parent0e602bf13911992598b9bade75b26cbf623a5e12 (diff)
ubifs: correct the size of nnode in memset
There is a typo in lpt to memset nnode by the size in sizeof(stuct ubifs_pnode). Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--mkfs.ubifs/lpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs.ubifs/lpt.c b/mkfs.ubifs/lpt.c
index f6d4352..6aa0b88 100644
--- a/mkfs.ubifs/lpt.c
+++ b/mkfs.ubifs/lpt.c
@@ -384,7 +384,7 @@ int create_lpt(struct ubifs_info *c)
goto out;
}
memset(pnode, 0 , sizeof(struct ubifs_pnode));
- memset(nnode, 0 , sizeof(struct ubifs_pnode));
+ memset(nnode, 0 , sizeof(struct ubifs_nnode));
c->lscan_lnum = c->main_first;