fixed possible dereference of null pointer (patch from Vaio)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7514 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-09-09 18:12:39 +00:00
parent 28b11a555a
commit 3bee80c807

View File

@ -1209,11 +1209,9 @@ std::string RsAccountsDetail::getHomePath()
#else /* Windows */
char *h2 = getenv("HOMEDRIVE");
std::cerr << "getHomePath() -> $HOMEDRIVE = " << h2 << std::endl;
char *h3 = getenv("HOMEPATH");
std::cerr << "getHomePath() -> $HOMEPATH = " << h3 << std::endl;
if (h2 == NULL)
if(!h2)
{
// Might be Win95/98
// generate default.