summaryrefslogtreecommitdiff
path: root/sway/commands/output.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2018-06-03 10:29:00 -0400
committerBrian Ashworth <[email protected]>2018-06-03 10:29:00 -0400
commit51fa988be9203dd81fd0897611a854ef9f4b4f5f (patch)
tree840d242a51352f9052c465ae53765bc85200969f /sway/commands/output.c
parent5ea4a4d3eec897b915003ad7fc2b2e274d1a59c1 (diff)
Address review comments for output subcommands
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c3
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) {
config->handler_context.output_config = output;
while (argc > 0) {
+ config->handler_context.leftovers.argc = 0;
+ config->handler_context.leftovers.argv = NULL;
+
if (find_handler(*argv, output_handlers, sizeof(output_handlers))) {
error = config_subcommand(argv, argc, output_handlers,
sizeof(output_handlers));