- Fixed bug #1001, which caused a segv (thanks to Bryce Harrington).
This commit is contained in:
Paul Beckingham 2012-06-10 16:47:27 -04:00
parent 0b75fe1311
commit fc4a71aa5c
2 changed files with 5 additions and 1 deletions

View file

@ -396,7 +396,10 @@ int Context::dispatch (std::string &out)
return rc;
}
return commands["help"]->execute (out);
if (commands["help"])
return commands["help"]->execute (out);
return 1;
}
////////////////////////////////////////////////////////////////////////////////