From: jmt Date: Sun, 10 Jan 2010 23:34:58 +0000 (+0000) Subject: GPS: guard against empty command strings in the route-manager. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2239eb26607b338e9df5944bf562d46cd2f87d32;p=flightgear.git GPS: guard against empty command strings in the route-manager. --- diff --git a/src/Autopilot/route_mgr.cxx b/src/Autopilot/route_mgr.cxx index bbd2db96b..45e3c922f 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -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"))