summaryrefslogtreecommitdiffstats
path: root/xlators/debug
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/debug')
-rw-r--r--xlators/debug/io-stats/src/io-stats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index d7684e16470..e2963b7c196 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -2855,8 +2855,7 @@ conditional_dump (dict_t *dict, char *key, data_t *value, void *data)
/* hmmm... no check for this */
/* name format: <passed in path/filename>.<xlator name slashes to -> */
namelen = value->len + strlen (this->name) + 2; /* '.' and '\0' */
- filename = alloca (namelen);
- memset (filename, 0, namelen);
+ filename = alloca0 (namelen);
memcpy (filename, data_to_str (value), value->len);
memcpy (filename + value->len, ".", 1);
memcpy (filename + value->len + 1, this->name, strlen(this->name));