Fix bus error in DebugPrint if -datadir given non-existent directory.

pull/19/head
Gavin Andresen 14 years ago
parent 415535e47b
commit dbe79d3451

@ -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…
Cancel
Save