From 3a609ecc874bdf87ae1433890e984cb989970419 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 23 Apr 2008 13:26:30 +0000 Subject: [PATCH] eliminate warning about unused variable --- libtransmission/platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtransmission/platform.c b/libtransmission/platform.c index 453924e37..fc1af3a6d 100644 --- a/libtransmission/platform.c +++ b/libtransmission/platform.c @@ -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 ); -- 2.40.0