mirror of
https://github.com/transmission/transmission
synced 2024-12-21 15:22:37 +00:00
fix: restore tr_optind in all getConfigDir branches (#6920)
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 e49747ab51
.
This commit is contained in:
parent
0f1aaf11e0
commit
ec5296c8dc
1 changed files with 1 additions and 1 deletions
|
@ -167,8 +167,8 @@ void onTorrentFileDownloaded(tr_web::FetchResponse const& response)
|
|||
{
|
||||
if (c == 'g')
|
||||
{
|
||||
tr_optind = ind;
|
||||
return my_optarg;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue