VirtualBox

Opened 13 years ago

Closed 13 years ago

#9978 closed defect (fixed)

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

Reported by: xin li Owned by:
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 (2)

comment:1 by Michael Thayer, 13 years ago

Summary: uninitialized local variable 'rc' used in vboxmanagemisc.cppuninitialized 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 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette