seat config handler context

This commit is contained in:
Tony Crisci 2018-01-20 11:44:34 -05:00
parent 9e0595f26b
commit cc3c713889
8 changed files with 31 additions and 8 deletions

View file

@ -28,6 +28,9 @@ struct cmd_results *cmd_input(int argc, char **argv) {
if (!has_context) {
// caller did not give a context so create one just for this command
config->handler_context.input_config = new_input_config(argv[0]);
if (!config->handler_context.input_config) {
return cmd_results_new(CMD_FAILURE, NULL, "Couldn't allocate config");
}
}
int argc_new = argc-2;