]> git.mxchange.org Git - flightgear.git/commitdiff
GPS: guard against empty command strings in the route-manager.
authorjmt <jmt>
Sun, 10 Jan 2010 23:34:58 +0000 (23:34 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 16 Jan 2010 15:00:15 +0000 (16:00 +0100)
src/Autopilot/route_mgr.cxx

index bbd2db96b58531c063ecbee448a26ee897395420..45e3c922ff36e978fc0495b5f5f69e685018d17c 100644 (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"))