From 7e396d836de8a411213eefc6024a33d89bc560d0 Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Wed, 30 Sep 2015 16:41:19 +0530 Subject: cli/tier : fixes cli crash when user tries "gluster v tier" command Signed-off-by: Manikandan Selvaganesh Change-Id: I919d8935c849f9be6b2cb43e8332afb821778d89 BUG: 1267539 Reviewed-on: http://review.gluster.org/12258 Reviewed-by: Dan Lambright Tested-by: NetBSD Build System Tested-by: Gluster Build System Tested-by: Dan Lambright --- cli/src/cli-cmd-volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-volume.c') 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; } -- cgit