169615: Get rid of MOZILLA_FIVE_HOME warning. r=dmose sr=sspitzer

git-svn-id: svn://10.0.0.236/trunk@134542 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com 2002-11-27 23:02:17 +00:00
parent 1c4588e4f9
commit acbc41ecc3
2 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,7 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
}
else
{
#if defined(DEBUG)
static PRBool firstWarning = PR_TRUE;
if(firstWarning) {
@ -280,6 +281,7 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
printf("Warning: MOZILLA_FIVE_HOME not set.\n");
firstWarning = PR_FALSE;
}
#endif /* DEBUG */
// Fall back to current directory.
if (getcwd(buf, sizeof(buf)))

View File

@ -390,6 +390,7 @@ static void GetCurrentProcessDirectory(nsFileSpec& aFileSpec)
}
else
{
#if defined(DEBUG)
static PRBool firstWarning = PR_TRUE;
if(firstWarning) {
@ -397,6 +398,7 @@ static void GetCurrentProcessDirectory(nsFileSpec& aFileSpec)
printf("Warning: MOZILLA_FIVE_HOME not set.\n");
firstWarning = PR_FALSE;
}
#endif /* DEBUG */
// Fall back to current directory.
if (getcwd(buf, sizeof(buf)))