summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-16 14:19:55 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-23 10:17:59 +0000
commit2b0ae216ba7b27f490ccf5f6af978707e6f39d05 (patch)
treeaffa2ccb74159fb4e089603b8741b199674d6616 /xlators
parentda22e8b1ce657280babbe077b53313058822085c (diff)
xlators/mgmt/glusterd/src/glusterd-utils.c : re-scope message variable
The the error message variable changed in scope - defined in a smaller scope. Compile-tested only! Change-Id: I16dda11c30099b0e448b8e44a300f153727ce8da updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.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 87c1fcaaad1..a7ff9d70ab9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -13277,7 +13277,6 @@ glusterd_get_default_val_for_volopt (dict_t *ctx, gf_boolean_t all_opts,
struct volopt_map_entry *vme = NULL;
int ret = -1;
int count = 0;
- char err_str[PATH_MAX] = "";
xlator_t *this = NULL;
char *def_val = NULL;
char dict_key[50] = "";
@@ -13366,6 +13365,7 @@ glusterd_get_default_val_for_volopt (dict_t *ctx, gf_boolean_t all_opts,
out:
if (ret && !all_opts && !key_found) {
+ char err_str[PATH_MAX];
snprintf (err_str, sizeof (err_str),
"option %s does not exist", orig_key);
*op_errstr = gf_strdup (err_str);