Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Feb 6, 2024
1 parent 2bdcde2 commit b48f867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/errorlogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ std::string ErrorMessage::getXMLHeader(std::string productName)
{
const auto nameAndVersion = Settings::getNameAndVersion(productName);
productName = nameAndVersion.first;
const std::string version = (!nameAndVersion.first.empty()) ? CppCheck::version() : nameAndVersion.second;
const std::string version = nameAndVersion.first.empty() ? CppCheck::version() : nameAndVersion.second;

tinyxml2::XMLPrinter printer;

Expand Down

0 comments on commit b48f867

Please sign in to comment.