rv = GetAllProfiles(); if (NS_FAILED(rv)) return rv;
GetAllProfiles();
NS_IMETHODIMP nsProfile::GetProfileList(char **profileListStr){	nsresult rv;	nsCAutoString profileList("");    #if defined(DEBUG_profile)	printf("Inside GetProfileList routine.\n" );#endif	rv = GetAllProfiles();	if (NS_FAILED(rv)) return rv;	for (PRInt32 i=0; i < mNumProfiles; i++)	{		if (i != 0)		{			profileList += ",";		}		profileList += mProfiles[i];	}    *profileListStr = nsCRT::strdup((const char *)profileList);    return NS_OK;}