mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +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)
|
debug(_debug),use_serial(_use_serial),mready(true)
|
||||||
{
|
{
|
||||||
info = NULL;
|
info = NULL;
|
||||||
|
numberOfDevices = 0;
|
||||||
|
|
||||||
qRegisterMetaType<OP_DFU::Status>("Status");
|
qRegisterMetaType<OP_DFU::Status>("Status");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user