* (bug #5709) Fix crash when invoked with --version
This commit is contained in:
parent
79bb668a9f
commit
37f2b4db90
2 changed files with 14 additions and 3 deletions
|
@ -53,7 +53,7 @@ char *Sys_DefaultHomePath(void)
|
|||
{
|
||||
char *p;
|
||||
|
||||
if( !*homePath )
|
||||
if( !*homePath && com_homepath != NULL )
|
||||
{
|
||||
if( ( p = getenv( "HOME" ) ) != NULL )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue