Skip to content

Commit

Permalink
fix: restore tr_optind in all getConfigDir branches (transmission#6920)
Browse files Browse the repository at this point in the history
When the --config-dir/-g option was passed, this bug caused all options
preceeding it on the command line to be ignored.

Also remove the superfluous break statement.

Regression introduced by e49747a.
  • Loading branch information
tobbez authored Jun 15, 2024
1 parent 0f1aaf1 commit ec5296c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ void onTorrentFileDownloaded(tr_web::FetchResponse const& response)
{
if (c == 'g')
{
tr_optind = ind;
return my_optarg;
break;
}
}

Expand Down

0 comments on commit ec5296c

Please sign in to comment.