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:
parent
e307ab4d74
commit
fdcea01100
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user