diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7249c04ed..a1468a3bf 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -575,9 +575,9 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string for (const std::string &addon : mSettings.addons) { struct AddonInfo addonInfo; - const std::string errmsg = addonInfo.getAddonInfo(addon, mSettings.exename); - if (!errmsg.empty()) { - reportOut(errmsg); + const std::string failedToGetAddonInfo = addonInfo.getAddonInfo(addon, mSettings.exename); + if (!failedToGetAddonInfo.empty()) { + reportOut(failedToGetAddonInfo); continue; } const std::string &results = executeAddon(addonInfo, dumpFile);