Fix issue detected by Coverity, in case solution does not specify platform configuration the platform will be uninitialized

This commit is contained in:
Daniel Marjamäki 2017-08-02 07:59:25 +02:00
parent 05cdda3f4c
commit 5abf39503a
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ void ImportProject::importSln(std::istream &istr, const std::string &path)
namespace { namespace {
struct ProjectConfiguration { struct ProjectConfiguration {
explicit ProjectConfiguration(const tinyxml2::XMLElement *cfg) { explicit ProjectConfiguration(const tinyxml2::XMLElement *cfg) : platform(Unknown) {
const char *a = cfg->Attribute("Include"); const char *a = cfg->Attribute("Include");
if (a) if (a)
name = a; name = a;