basedir on UNIX should not be "" as the fallback.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5761 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-09-14 16:32:29 +00:00
parent b095410ce6
commit 2b21ab1164

View file

@ -1190,7 +1190,7 @@ int main (int c, const char **v)
} }
} }
#else #else
parms.basedir = ""; //play it safe when realpath is too awkward to use. don't depend upon "./" working, and hope that the user uses -basedir or simply doesn't care about path prints (hopefully its only windows libraries that change the working dir without the program's permission). parms.basedir = "./";
#endif #endif
memset(bindir, 0, sizeof(bindir)); //readlink does NOT null terminate, apparently. memset(bindir, 0, sizeof(bindir)); //readlink does NOT null terminate, apparently.