summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-09-30 16:41:19 +0530
committerDan Lambright <dlambrig@redhat.com>2015-10-01 05:46:11 -0700
commit7e396d836de8a411213eefc6024a33d89bc560d0 (patch)
tree1bcbf10ae5d417d1ab8229903316864219a6a25b /cli
parent2b963bc22533cacbfc833cf64dd9bfef138db5ee (diff)
cli/tier : fixes cli crash when user tries "gluster v tier" command
Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Change-Id: I919d8935c849f9be6b2cb43e8332afb821778d89 BUG: 1267539 Reviewed-on: http://review.gluster.org/12258 Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index a265b38aaaa..7a350a9dc76 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -1055,7 +1055,7 @@ cli_cmd_volume_tier_cbk (struct cli_state *state,
if (wordcount < 4) {
cli_usage_out (word->pattern);
- if (!strcmp(words[2], "help"))
+ if (wordcount == 3 && !strcmp(words[2], "help"))
ret = 0;
goto out;
}