POETSII / Orchestrator

The Orchestrator is the configuration and run-time management system for POETS platforms.
1 stars 1 forks source link

Fix mistake in deployer #85

Closed mvousden closed 5 years ago

mvousden commented 5 years ago

From ADB:

fileOrigin.size()>=0       always evaluates to TRUE.

should it be ">", or is it more subtle?

void Dialect1Deployer::name_engine(P_engine* engine)
{
     if ((engine->Name().size() == 0 ||
          engine->Name() == "**undefined**") &&
         fileOrigin.size() >= 0)
     {
         engine->Name(fileOrigin);
     }
}