From e26d29f1f35096621cb9f55ee3ae9975091a9ad3 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Thu, 17 Sep 2009 09:20:45 +0200 Subject: fixed closing of debug dump in case of existing backtrace --- lib/Plugins/CCpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 8c35c530..6c341cea 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -558,9 +558,10 @@ void CAnalyzerCCpp::CreateReport(const std::string& pDebugDumpDir) CDebugDump dd; dd.Open(pDebugDumpDir); bool bt_exists = dd.Exist(FILENAME_BACKTRACE); - dd.Close(); /* do not keep dir locked longer than needed */ + if (bt_exists) { + dd.Close(); /* do not keep dir locked longer than needed */ return; /* already done */ } -- cgit