summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index aead5f427..1449d62fa 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -1475,6 +1475,10 @@ cli_cmd_volume_top_parse (const char **words, int wordcount,
goto out;
}
+ if ((blk_size > 0) ^ (count > 0)) {
+ ret = -1;
+ goto out;
+ }
*options = dict;
out:
if (ret && dict)