aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-gsm_astat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-14 12:05:31 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-14 20:06:02 +0000
commit04ab731933cf231f19956665cba64742923b28e5 (patch)
tree7999134242b72c9e71c6d40605a322e8075f49e5 /ui/cli/tap-gsm_astat.c
parent4729e13df79d8a1f17542c0f21049c13003c8374 (diff)
The registered -z parameter string shouldn't end with a comma.
If it ends with a comma, then, if you don't provide any parameters, you get a "no such -z statistic" message followed by a list of available statistics. If it doesn't end with a comma, then, if you don't provide any parameters *and* a parameter is required, you get a usage message, which is more useful - and, in many of those cases, a parameter *isn't* required. Change-Id: I81275ea41ad4611d8210ca3cb07c09f0abde58f2 Reviewed-on: https://code.wireshark.org/review/5308 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/cli/tap-gsm_astat.c')
-rw-r--r--ui/cli/tap-gsm_astat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cli/tap-gsm_astat.c b/ui/cli/tap-gsm_astat.c
index 9d07d7c47d..8db139e2d5 100644
--- a/ui/cli/tap-gsm_astat.c
+++ b/ui/cli/tap-gsm_astat.c
@@ -342,7 +342,7 @@ gsm_a_stat_init(const char *opt_arg _U_, void *userdata _U_)
static stat_tap_ui gsm_a_stat_ui = {
REGISTER_STAT_GROUP_GENERIC,
NULL,
- "gsm_a,",
+ "gsm_a",
gsm_a_stat_init,
-1,
0,