Address review comments for output subcommands

master
Brian Ashworth 7 years ago
parent 5ea4a4d3ee
commit 51fa988be9

@ -35,6 +35,9 @@ struct cmd_results *cmd_output(int argc, char **argv) {
config->handler_context.output_config = output; config->handler_context.output_config = output;
while (argc > 0) { while (argc > 0) {
config->handler_context.leftovers.argc = 0;
config->handler_context.leftovers.argv = NULL;
if (find_handler(*argv, output_handlers, sizeof(output_handlers))) { if (find_handler(*argv, output_handlers, sizeof(output_handlers))) {
error = config_subcommand(argv, argc, output_handlers, error = config_subcommand(argv, argc, output_handlers,
sizeof(output_handlers)); sizeof(output_handlers));

@ -8,7 +8,7 @@
#include "log.h" #include "log.h"
#include "stringop.h" #include "stringop.h"
static char *bg_options[] = { static const char *bg_options[] = {
"stretch", "stretch",
"center", "center",
"fill", "fill",

Loading…
Cancel
Save