VirtualBox

Changeset 85220 in vbox


Ignore:
Timestamp:
Jul 11, 2020 3:42:34 PM (4 years ago)
Author:
vboxsync
Message:

VBoxManageGuestCtrl.cpp: Must not use RT_ZERO on pCtx in gctrCmdCtxInit as the struct contains 5 C++ objects. bugref:9790.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r85121 r85220  
    695695static RTEXITCODE gctrCmdCtxInit(PGCTLCMDCTX pCtx, HandlerArg *pArg)
    696696{
    697     RT_ZERO(*pCtx);
    698     pCtx->pArg = pArg;
     697    pCtx->pArg                      = pArg;
     698    pCtx->pCmdDef                   = NULL;
     699    pCtx->pszVmNameOrUuid           = NULL;
     700    pCtx->fPostOptionParsingInited  = false;
     701    pCtx->fLockedVmSession          = false;
     702    pCtx->fDetachGuestSession       = false;
     703    pCtx->fInstalledSignalHandler   = false;
     704    pCtx->cVerbose                  = 0;
     705    pCtx->strUsername.setNull();
     706    pCtx->strPassword.setNull();
     707    pCtx->strDomain.setNull();
     708    pCtx->pGuest.setNull();
     709    pCtx->pGuestSession.setNull();
     710    pCtx->uSessionID                = 0;
    699711
    700712    /*
     
    704716    int rc = RTProcQueryUsername(RTProcSelf(), szUser, sizeof(szUser), NULL);
    705717    if (   RT_SUCCESS(rc)
    706         && RTStrIsValidEncoding(szUser)) /* paranoia required on posix */
     718        && RTStrIsValidEncoding(szUser)) /* paranoia was required on posix at some point, not needed any more! */
    707719    {
    708720        try
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