diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-03 10:29:00 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-03 10:29:00 -0400 |
commit | 51fa988be9203dd81fd0897611a854ef9f4b4f5f (patch) | |
tree | 840d242a51352f9052c465ae53765bc85200969f /sway/commands/output.c | |
parent | Refactor cmd_output to use config_subcommand (diff) | |
download | sway-51fa988be9203dd81fd0897611a854ef9f4b4f5f.tar.gz sway-51fa988be9203dd81fd0897611a854ef9f4b4f5f.tar.zst sway-51fa988be9203dd81fd0897611a854ef9f4b4f5f.zip |
Address review comments for output subcommands
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r-- | sway/commands/output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index a7d325ec..bc12310e 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -35,6 +35,9 @@ struct cmd_results *cmd_output(int argc, char **argv) { | |||
35 | config->handler_context.output_config = output; | 35 | config->handler_context.output_config = output; |
36 | 36 | ||
37 | while (argc > 0) { | 37 | while (argc > 0) { |
38 | config->handler_context.leftovers.argc = 0; | ||
39 | config->handler_context.leftovers.argv = NULL; | ||
40 | |||
38 | if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { | 41 | if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { |
39 | error = config_subcommand(argv, argc, output_handlers, | 42 | error = config_subcommand(argv, argc, output_handlers, |
40 | sizeof(output_handlers)); | 43 | sizeof(output_handlers)); |