mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-25 21:30:40 +02:00
wpctl: fix settings --help listing
GOptionEntry arrays need to be NULL terminated, otherwise garbage will be printed after the last entry...
This commit is contained in:
parent
857cee10cf
commit
95cfa9e453
1 changed files with 3 additions and 2 deletions
|
|
@ -1663,7 +1663,7 @@ out:
|
|||
g_main_loop_quit (self->loop);
|
||||
}
|
||||
|
||||
#define N_ENTRIES 3
|
||||
#define N_ENTRIES 4
|
||||
|
||||
static const struct subcommand {
|
||||
/* the name to match on the command line */
|
||||
|
|
@ -1820,7 +1820,8 @@ static const struct subcommand {
|
|||
"Saves the setting value (no KEY means 'all', no VAL means current value)", NULL },
|
||||
{ "reset", 'r', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE,
|
||||
&cmdline.settings.reset,
|
||||
"Resets the saved setting to its default value", NULL }
|
||||
"Resets the saved setting to its default value", NULL },
|
||||
{ NULL }
|
||||
},
|
||||
.parse_positional = settings_parse_positional,
|
||||
.prepare = settings_prepare,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue