mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
(trunk cli) #3629 "transmission-cli 2.10 segfaults on startup" -- fixed. solution by Longinus00
This commit is contained in:
parent
6a55271ae1
commit
14f8029fd1
1 changed files with 1 additions and 1 deletions
|
@ -233,6 +233,7 @@ main( int argc, char ** argv )
|
|||
printf( "%s %s\n", MY_READABLE_NAME, LONG_VERSION_STRING );
|
||||
|
||||
/* the command line overrides defaults */
|
||||
tr_bencInitDict( &settings, 0 );
|
||||
if( parseCommandLine( &settings, argc, (const char**)argv ) )
|
||||
return EXIT_FAILURE;
|
||||
|
||||
|
@ -246,7 +247,6 @@ main( int argc, char ** argv )
|
|||
}
|
||||
|
||||
/* load the defaults from config file + libtransmission defaults */
|
||||
tr_bencInitDict( &settings, 0 );
|
||||
configDir = getConfigDir( argc, (const char**)argv );
|
||||
tr_sessionLoadSettings( &settings, configDir, MY_CONFIG_NAME );
|
||||
|
||||
|
|
Loading…
Reference in a new issue