VirtualBox

Changeset 18946 in vbox


Ignore:
Timestamp:
Apr 16, 2009 1:57:47 PM (16 years ago)
Author:
vboxsync
Message:

Fixed possibly uninitialized variable

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwacc_vmx.h

    r15748 r18946  
    394394 * @{
    395395 */
     396/** -1 Invalid exit code */
     397#define VMX_EXIT_INVALID            -1
    396398/** 0 Exception or non-maskable interrupt (NMI). */
    397399#define VMX_EXIT_EXCEPTION          0
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r18927 r18946  
    19301930    int         rc = VINF_SUCCESS;
    19311931    RTGCUINTREG val;
    1932     RTGCUINTREG exitReason, instrError, cbInstr;
     1932    RTGCUINTREG exitReason = VMX_EXIT_INVALID;
     1933    RTGCUINTREG instrError, cbInstr;
    19331934    RTGCUINTPTR exitQualification;
    19341935    RTGCUINTPTR intInfo = 0; /* shut up buggy gcc 4 */
Note: See TracChangeset for help on using the changeset viewer.

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