1
0
Fork 0

GPS: guard against empty command strings in the route-manager.

This commit is contained in:
jmt 2010-01-10 23:34:58 +00:00 committed by Tim Moore
parent 8cfdfb21a5
commit 2239eb2660

View file

@ -455,6 +455,10 @@ void FGRouteMgr::update_mirror() {
void FGRouteMgr::InputListener::valueChanged(SGPropertyNode *prop)
{
const char *s = prop->getStringValue();
if (strlen(s) == 0) {
return;
}
if (!strcmp(s, "@CLEAR"))
mgr->init();
else if (!strcmp(s, "@ACTIVATE"))