summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2012-01-24 12:03:56 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-23 23:24:49 -0800
commite04d45facc722d944d51439f4ae57b2af2a03d3e (patch)
treebef438f6d745b30cc8638c8f2ff7a99da814ccf0 /xlators
parentaecc9f52647e0ebc89cc5ca56a9f5182b7feb594 (diff)
glusterd: fix transpose of memset arguments
a fix for transposed arguments to memset in glusterd_get_all_volnames function introduced in volume status enhancement. Change-Id: Iaea60c7d19b23992684f91b016b0841e2153b0a9 BUG: 765464 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/2680 Reviewed-by: Amar Tumballi <amar@gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index bf33e9128..efc7069d8 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -3477,7 +3477,7 @@ glusterd_get_all_volnames (dict_t *dict)
GF_ASSERT (priv);
list_for_each_entry (entry, &priv->volumes, vol_list) {
- memset (key, sizeof (key), 0);
+ memset (key, 0, sizeof (key));
snprintf (key, sizeof (key), "vol%d", vol_count);
ret = dict_set_str (dict, key, entry->volname);
if (ret)