summaryrefslogtreecommitdiffstats
path: root/tests/basic/ec/ec-fast-fgetxattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/ec/ec-fast-fgetxattr.c')
-rw-r--r--tests/basic/ec/ec-fast-fgetxattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/ec/ec-fast-fgetxattr.c b/tests/basic/ec/ec-fast-fgetxattr.c
index ecdbcbe44a6..b40dda65de5 100644
--- a/tests/basic/ec/ec-fast-fgetxattr.c
+++ b/tests/basic/ec/ec-fast-fgetxattr.c
@@ -16,7 +16,7 @@ fill_iov (struct iovec *iov, char fillchar, int count)
{
int ret = -1;
- iov->iov_base = calloc (count + 1, sizeof(fillchar));
+ iov->iov_base = malloc (count + 1);
if (iov->iov_base == NULL) {
return ret;
} else {