mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix: sonarcloud (#2868)
* refactor: make this variable const * refactor: replace redundant type with auto * refactor: use the nullptr literal * refactor: replace declaration by structured binding declaration
This commit is contained in:
+1
-1
@@ -324,7 +324,7 @@ int tr_main(int argc, char* argv[])
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (options.add == nullptr && options.deleteme == nullptr && options.replace[0] == 0)
|
||||
if (options.add == nullptr && options.deleteme == nullptr && options.replace[0] == nullptr)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Must specify -a, -d or -r\n");
|
||||
tr_getopt_usage(MyName, Usage, std::data(Options));
|
||||
|
||||
Reference in New Issue
Block a user