1
0
Fork 0
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:
Torbjörn Lönnemark 2024-06-15 22:57:46 +02:00 committed by GitHub
parent 0f1aaf11e0
commit ec5296c8dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,8 +167,8 @@ void onTorrentFileDownloaded(tr_web::FetchResponse const& response)
{
if (c == 'g')
{
tr_optind = ind;
return my_optarg;
break;
}
}