- A more appropriate patch than that provided by r473695.

This commit is contained in:
Stephen Montgomery-Smith 2018-07-02 18:11:57 +00:00
parent 8327de13f1
commit 285a20802e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473763

View file

@ -5,7 +5,7 @@
const char *tmpdir = theDXApplication->getTmpDirectory();
int tmpdirlen = STRLEN(tmpdir);
- if (!tmpdirlen) return FALSE;
+ if (!tmpdirlen) return (char*) FALSE;
+ if (!tmpdirlen) return NULL;
if (tmpdir[tmpdirlen-1] == '/') {
sprintf(netfilename, "%sdx%d.net", tmpdir, getpid());
sprintf(cfgfilename, "%sdx%d.cfg", tmpdir, getpid());