1
0
Fork 0
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:
Charles Kerr 2010-10-17 17:40:40 +00:00
parent 6a55271ae1
commit 14f8029fd1

View file

@ -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 );