diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-11-14 12:05:31 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-11-14 20:06:02 +0000 |
commit | 04ab731933cf231f19956665cba64742923b28e5 (patch) | |
tree | 7999134242b72c9e71c6d40605a322e8075f49e5 /ui/gtk/rpc_stat.c | |
parent | 4729e13df79d8a1f17542c0f21049c13003c8374 (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/gtk/rpc_stat.c')
-rw-r--r-- | ui/gtk/rpc_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/rpc_stat.c b/ui/gtk/rpc_stat.c index 553a6c5433..feb15809ee 100644 --- a/ui/gtk/rpc_stat.c +++ b/ui/gtk/rpc_stat.c @@ -526,7 +526,7 @@ gtk_rpcstat_cb(GtkAction *action _U_, gpointer user_data _U_) static stat_tap_ui rpcstat_ui = { REGISTER_STAT_GROUP_GENERIC, NULL, - "rpc,srt,", + "rpc,srt", gtk_rpcstat_init, -1, 0, |