VirtualBox

Changeset 104553 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
May 8, 2024 12:58:08 PM (9 months ago)
Author:
vboxsync
Message:

Runtime/common/zip/xarvfs.cpp: Unnecessary NULL pointer checked (already checked in the if right above), and remove redundant if condition, bugref:3409

File:
1 edited

Legend:

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

    r100908 r104553  
    15211521    if (pCurFile)
    15221522        pThis->XarReader.pCurFile = pCurFile = rtZipXarGetNextFileElement(pCurFile, &pThis->XarReader.cCurDepth);
    1523     else if (!pThis->fEndOfStream)
     1523    else
    15241524    {
    15251525        pThis->XarReader.cCurDepth  = 0;
     
    19741974                    xml::ElementNode const *pTocElem  = NULL;
    19751975                    if (pRootElem && pRootElem->nameEquals("xar"))
    1976                         pTocElem = pRootElem ? pRootElem->findChildElement("toc") : NULL;
     1976                        pTocElem = pRootElem->findChildElement("toc");
    19771977                    if (pTocElem)
    19781978                    {
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