Fix use of uninitialised variable.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1159 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b5d6325fe3
commit
20880b07be
1 changed files with 6 additions and 8 deletions
|
@ -4334,14 +4334,12 @@ void COM_InitFilesystem (void)
|
|||
strcat(com_homedir, "/");
|
||||
}
|
||||
#else
|
||||
if (!ev)
|
||||
{ //yay for unix!.
|
||||
ev = getenv("HOME");
|
||||
if (ev)
|
||||
Q_strncpyz(com_homedir, ev, sizeof(com_homedir));
|
||||
else
|
||||
*com_homedir = *"";
|
||||
}
|
||||
//yay for unix!.
|
||||
ev = getenv("HOME");
|
||||
if (ev)
|
||||
Q_strncpyz(com_homedir, ev, sizeof(com_homedir));
|
||||
else
|
||||
*com_homedir = '\0';
|
||||
#endif
|
||||
|
||||
if (!COM_CheckParm("-usehome"))
|
||||
|
|
Loading…
Reference in a new issue