diff options
| author | Gavin Andresen <[email protected]> | 2011-01-20 14:57:46 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-01-20 14:57:46 -0500 |
| commit | dbe79d3451647dae6d07644081fde7b42a408335 (patch) | |
| tree | b2e0badd5272b2a12890bc21795ec12ec830fb04 /util.cpp | |
| parent | Merge branch 'fix-statusbar-color' of https://github.com/mhanne/bitcoin into ... (diff) | |
| download | discoin-dbe79d3451647dae6d07644081fde7b42a408335.tar.xz discoin-dbe79d3451647dae6d07644081fde7b42a408335.zip | |
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) { |