VirtualBox

Ignore:
Timestamp:
Jun 18, 2014 3:25:12 PM (10 years ago)
Author:
vboxsync
Message:

RTVfsChainOpenIoStream: initialize pszError at the earliest possible way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfschain.cpp

    r44529 r51651  
    613613RTDECL(int) RTVfsChainOpenIoStream(const char *pszSpec, uint64_t fOpen, PRTVFSIOSTREAM phVfsIos, const char **ppszError)
    614614{
     615    if (ppszError)
     616        *ppszError = NULL;
     617
    615618    AssertPtrReturn(pszSpec, VERR_INVALID_POINTER);
    616619    AssertReturn(*pszSpec != '\0', VERR_INVALID_PARAMETER);
    617620    AssertPtrReturn(phVfsIos, VERR_INVALID_POINTER);
    618     if (ppszError)
    619         *ppszError = NULL;
    620621
    621622    /*
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