Vboxwrapper: initialize class members

found by Coverity (CIDs 278299 34531)
This commit is contained in:
Christian Beer 2019-05-28 21:21:13 +02:00
parent 7cfd7296f8
commit 24c307a1c4
2 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,15 @@ static FloppyIOException __FloppyIOExceptionSingleton;
//
FloppyIO::FloppyIO(const char * filename, int flags) {
// initialize class members
ofsInput = 0;
szInput = 0;
ofsOutput = 0;
szOutput = 0;
ofsCtrlByteIn = 0;
ofsCtrlByteOut = 0;
synchronized = false;
syncTimeout = 0;
// Clear error flag
this->error = 0;

View File

@ -119,6 +119,7 @@ VBOX_BASE::VBOX_BASE() : VBOX_JOB() {
register_only = false;
rd_host_port = 0;
headless = true;
log_pointer = 0;
vm_pid = 0;
vboxsvc_pid = 0;