mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
refs #905 Fixed unrelated potential undefined behaviour.
This commit is contained in:
@@ -155,7 +155,7 @@ namespace BlackGui
|
|||||||
return info.getIdentifier() == identifier;
|
return info.getIdentifier() == identifier;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (selected->isUnspecified())
|
if (selected == simDrivers.end() || selected->isUnspecified())
|
||||||
{
|
{
|
||||||
CLogMessage(this).error("Simulator plugin does not exist: '%1'") << identifier;
|
CLogMessage(this).error("Simulator plugin does not exist: '%1'") << identifier;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user