mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix bus error in DebugPrint if -datadir given non-existent directory.
This commit is contained in:
parent
415535e47b
commit
dbe79d3451
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 New Issue
Block a user