Address review comments for output subcommands

This commit is contained in:
Brian Ashworth 2018-06-03 10:29:00 -04:00
parent 5ea4a4d3ee
commit 51fa988be9
2 changed files with 4 additions and 1 deletions

View File

@ -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));

View File

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