diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-01-20 14:57:46 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-01-20 14:57:46 -0500 |
commit | dbe79d3451647dae6d07644081fde7b42a408335 (patch) | |
tree | b2e0badd5272b2a12890bc21795ec12ec830fb04 /util.cpp | |
parent | 415535e47be437cd89d70f31e499d2522e6dbeca (diff) |
Fix bus error in DebugPrint if -datadir given non-existent directory.
Diffstat (limited to 'util.cpp')
-rw-r--r-- | util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |