summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-volume.c
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:45:29 -0700
commit549859148c17fe8c30122ad848af6e169ead4783 (patch)
treeec0b33e1b7a4708a5ed2c7c78477a7d21544b23d /cli/src/cli-cmd-volume.c
parente31eebf0a4026db32c9793563a0ac3815082cddd (diff)
cli/tier : fixes cli crash when user tries "gluster v tier" command
Backport of http://review.gluster.org/#/c/12258/ > Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> > Change-Id: I919d8935c849f9be6b2cb43e8332afb821778d89 > BUG: 1267539 Change-Id: I7a71eac194e400f5895a69c2111c1ddf9b6f4d5d BUG: 1267532 Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/12259 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/src/cli-cmd-volume.c')
-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 e1b27ba94b5..1b9f0af7833 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -1060,7 +1060,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;
}