mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
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:
parent
28b11a555a
commit
3bee80c807
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user