Fix bus error in DebugPrint if -datadir given non-existent directory.
This commit is contained in:
parent
415535e47b
commit
dbe79d3451
1 changed files with 1 additions and 1 deletions
2
util.cpp
2
util.cpp
|
@ -165,7 +165,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
|
|||
GetDataDir(pszFile);
|
||||
strlcat(pszFile, "/debug.log", sizeof(pszFile));
|
||||
fileout = fopen(pszFile, "a");
|
||||
setbuf(fileout, NULL); // unbuffered
|
||||
if (fileout) setbuf(fileout, NULL); // unbuffered
|
||||
}
|
||||
if (fileout)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue