eliminate warning about unused variable

This commit is contained in:
Mitchell Livingston 2008-04-23 13:26:30 +00:00
parent 3a2e1f0c3b
commit 3a609ecc87
1 changed files with 2 additions and 1 deletions

View File

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