fix: merging all the code
This commit is contained in:
parent
2e9e98d343
commit
1eecb1bd42
12 changed files with 86 additions and 61 deletions
|
|
@ -42,7 +42,7 @@ int iob_init(struct iob_context *ctx)
|
|||
return 0;
|
||||
|
||||
case IOB_MODE_CMD:
|
||||
if (context.args != NULL)
|
||||
if (context.args == NULL)
|
||||
return IOB_ERROR_BAD_ARG;
|
||||
state = IOB_STATE_READY;
|
||||
return 0;
|
||||
|
|
@ -121,7 +121,7 @@ int iob_config_from_args(struct args_options *args, struct iob_context *ctx)
|
|||
|
||||
case INPUT_CMD:
|
||||
ctx->mode = IOB_MODE_CMD;
|
||||
ctx->args = NULL;
|
||||
ctx->args = (char *)args->input_source;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue