Skip to content

Commit cffa5de

Browse files
committed
dumpfile name fix
1 parent ac89b1e commit cffa5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static std::vector<std::string> split(const std::string &str, const std::string
334334
static std::string getDumpFileName(const Settings& settings, const std::string& filename, const std::string &cfgHash = "")
335335
{
336336
std::string extension;
337-
if ((settings.dump || !settings.buildDir.empty()) && !cfgHash.empty())
337+
if (settings.dump || !settings.buildDir.empty() || cfgHash.empty())
338338
extension = ".dump";
339339
else
340340
extension = "." + cfgHash + ".dump";

0 commit comments

Comments
 (0)