mirror of
https://github.com/transmission/transmission
synced 2025-02-04 05:22:40 +00:00
eliminate warning about unused variable
This commit is contained in:
parent
3a2e1f0c3b
commit
3a609ecc87
1 changed files with 2 additions and 1 deletions
|
@ -353,13 +353,14 @@ getOldCacheDir( void )
|
|||
if( !path )
|
||||
{
|
||||
char buf[MAX_PATH_LENGTH];
|
||||
const char * p = getOldConfigDir( );
|
||||
#if defined(__BEOS__) || defined(WIN32)
|
||||
const char * p = getOldConfigDir( );
|
||||
tr_buildPath( buf, sizeof( buf ), p, "Cache", NULL );
|
||||
#elif defined( SYS_DARWIN )
|
||||
tr_buildPath( buf, sizeof( buf ), getHomeDir(),
|
||||
"Library", "Caches", "Transmission", NULL );
|
||||
#else
|
||||
const char * p = getOldConfigDir( );
|
||||
tr_buildPath( buf, sizeof( buf ), p, "cache", NULL );
|
||||
#endif
|
||||
path = tr_strdup( buf );
|
||||
|
|
Loading…
Reference in a new issue