VirtualBox

Ignore:
Timestamp:
Jan 24, 2014 12:56:10 AM (11 years ago)
Author:
vboxsync
Message:

tar.cpp: hVfsIos init bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tar.cpp

    r50205 r50206  
    319319        return NULL;
    320320
    321     pFileInt->u32Magic = RTTARFILE_MAGIC;
    322     pFileInt->pTar = pInt;
    323     pFileInt->fOpenMode = fOpen;
     321    pFileInt->u32Magic    = RTTARFILE_MAGIC;
     322    pFileInt->pTar        = pInt;
     323    pFileInt->fOpenMode   = fOpen;
    324324    pFileInt->pszFilename = RTStrDup(pszFilename);
    325     if (!pFileInt->pszFilename)
    326     {
    327         pFileInt->hVfsIos = NIL_RTVFSIOSTREAM;
    328         RTMemFree(pFileInt);
    329         return NULL;
    330     }
    331 
    332     return pFileInt;
     325    pFileInt->hVfsIos     = NIL_RTVFSIOSTREAM;
     326    if (pFileInt->pszFilename)
     327        return pFileInt;
     328
     329    RTMemFree(pFileInt);
     330    return NULL;
     331
    333332}
    334333
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