VirtualBox

Ticket #9978 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

uninitialized local variable 'rc' used in vboxmanagemisc.cpp -> fixed as of 29 Nov 2011

Reported by: xinli1970 Owned by:
Priority: major Component: VM control
Version: VirtualBox 4.1.6 Keywords:
Cc: Guest type: other
Host type: other

Description

vboxmanagemisc.cpp(531) : uninitialized local variable 'rc' used

--- /Temp/VBoxManageMisc.cpp-rev5755.svn000.tmp.cpp Wed Nov 30 16:43:34 2011 +++ /VirtualBoxOSE/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp Wed Nov 30 16:41:46 2011 @@ -453,11 +453,11 @@

return RTEXITCODE_SUCCESS;

}

int handleStartVM(HandlerArg *a) {

  • HRESULT rc;

+ HRESULT rc = S_OK;

std::list<const char *> VMs; Bstr sessionType = "gui";

static const RTGETOPTDEF s_aStartVMOptions[] = {

Change History

comment:1 Changed 2 years ago by michael

  • Summary changed from uninitialized local variable 'rc' used in vboxmanagemisc.cpp to uninitialized local variable 'rc' used in vboxmanagemisc.cpp -> fixed as of 29 Nov 2011

Thanks for reporting this! In fact by co-incidence (unless you pointed it out via a different channel) this was spotted and fixed yesterday.

comment:2 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use