diff --git a/samples/vboxwrapper/floppyio.cpp b/samples/vboxwrapper/floppyio.cpp index f1d13d9fda..b66dde010b 100644 --- a/samples/vboxwrapper/floppyio.cpp +++ b/samples/vboxwrapper/floppyio.cpp @@ -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; diff --git a/samples/vboxwrapper/vbox_common.cpp b/samples/vboxwrapper/vbox_common.cpp index 37d374efa2..ecdae303d4 100644 --- a/samples/vboxwrapper/vbox_common.cpp +++ b/samples/vboxwrapper/vbox_common.cpp @@ -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;