summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-27 01:37:18 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-27 01:38:18 +0900
commita6775db3ca2ddc59ea507e587563e838f81f844f (patch)
tree210ff66fc6d7e2849ae225f5df957a34eeb4c709
parent3ce6070107fb4c7f0b8bdbc52ee359772a50b8b0 (diff)
Fixed segmentation fault when logger failed to open log file
-rw-r--r--src/Logger.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Logger.cc b/src/Logger.cc
index d8ff5653..3e3ee814 100644
--- a/src/Logger.cc
+++ b/src/Logger.cc
@@ -76,7 +76,7 @@ void Logger::openFile(const std::string& filename)
fpp_ = global::cout();
} else {
fpp_.reset(new BufferedFile(filename, BufferedFile::APPEND));
- if(!fpp_) {
+ if(!*static_cast<BufferedFile*>(fpp_.get())) {
throw DL_ABORT_EX(fmt(EX_FILE_OPEN, filename.c_str(), "n/a"));
}
}