Skip to content

Commit

Permalink
cli: add missing try guard
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Oct 1, 2024
1 parent 6bd27e8 commit 96f6f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int parse_filter(char* filter_str, struct filter* filters, struct filter_info* i
else if (strcmp("keepalive", k) == 0)
try(parse_keepalive(v, &info[0].settings.keepalive));
else if (strcmp("padding", k) == 0)
info[0].settings.padding = parse_padding(v);
info[0].settings.padding = try(parse_padding(v));
else
ret(-EINVAL, _("unsupported option type: '%s'"), k);
if (!next_delim) break;
Expand Down
2 changes: 1 addition & 1 deletion src/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static inline error_t args_parse_opt(int key, char* arg, struct argp_state* stat
try(parse_keepalive(arg, &args->gsettings.keepalive));
break;
case 'p':
args->gsettings.padding = parse_padding(arg);
args->gsettings.padding = try(parse_padding(arg));
break;
case 'F':
args->file = arg;
Expand Down

0 comments on commit 96f6f34

Please sign in to comment.