1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

numberOfDevices could be left unitialized if sendData or receiveData

fail in findDevices or if no one ever calls findDevices.  Added init of
var.
This commit is contained in:
naiiawah 2012-01-05 02:10:05 -07:00
parent e307ab4d74
commit fdcea01100

View File

@ -37,6 +37,7 @@ DFUObject::DFUObject(bool _debug,bool _use_serial,QString portname):
debug(_debug),use_serial(_use_serial),mready(true)
{
info = NULL;
numberOfDevices = 0;
qRegisterMetaType<OP_DFU::Status>("Status");