mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
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…
Add table
Add a link
Reference in a new issue