Skip to content

Commit

Permalink
Protect against uninitialized data
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Jun 7, 2014
1 parent 914eeb9 commit 05b647d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/QGCHilXPlaneConfiguration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ void QGCHilXPlaneConfiguration::setVersion(int version)

void QGCHilXPlaneConfiguration::toggleSimulation(bool connect)
{
if (!link) {
return;
}

Q_UNUSED(connect);
if (!link->isConnected())
{
Expand Down

0 comments on commit 05b647d

Please sign in to comment.