We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a455a7 commit e1ac8beCopy full SHA for e1ac8be
1 file changed
lib/cppcheck.cpp
@@ -131,14 +131,17 @@ class CppCheck::CppCheckLogger : public ErrorLogger
131
132
void setPlistFilenames(std::vector<std::string> files)
133
{
134
- mPlistFilenames = std::move(files);
+ if (mPlistFile.is_open()) {
135
+ mPlistFilenames = std::move(files);
136
+ }
137
}
138
139
void closePlist()
140
141
if (mPlistFile.is_open()) {
142
mPlistFile << ErrorLogger::plistFooter(mPlistFilenames);
143
mPlistFile.close();
144
+ mPlistFilenames.clear();
145
146
147
0 commit comments