VirtualBox

Ignore:
Timestamp:
Mar 31, 2023 9:03:56 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156632
Message:

IPRT/RTGetOpt: Simplification. bugref:10302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r99248 r99249  
    367367        for (uint32_t i = 0; i < RT_ELEMENTS(g_aStdOptions); i++)
    368368        {
    369             size_t cchMatch = 0;
    370             if (rtGetOptLongStrEquals(pszOption, g_aStdOptions[i].pszLong, RTSTR_MAX, g_aStdOptions[i].fFlags, &cchMatch))
    371             {
    372                 *pcchMatch = cchMatch;
     369            if (rtGetOptLongStrEquals(pszOption, g_aStdOptions[i].pszLong, RTSTR_MAX, g_aStdOptions[i].fFlags, pcchMatch))
    373370                return &g_aStdOptions[i];
    374             }
    375371        }
    376372
Note: See TracChangeset for help on using the changeset viewer.

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