diff options
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r-- | xlators/mount/fuse/src/fuse-helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index cb3e081e62e..a4e80b385dd 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -550,7 +550,8 @@ fuse_do_flip_xattr_ns (char *okey, const char *nns, char **nkey) okey = strchr (okey, '.'); GF_ASSERT (okey); - key = GF_CALLOC (1, strlen (nns) + strlen(okey) + 1, + int key_len = strlen (nns) + strlen(okey); + key = GF_MALLOC (key_len + 1, gf_common_mt_char); if (!key) { ret = -1; |