VirtualBox

Changeset 103341 in vbox


Ignore:
Timestamp:
Feb 14, 2024 1:43:40 AM (10 months ago)
Author:
vboxsync
Message:

IPRT/strformat.cpp: Missing va_end. Parfait bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformat.cpp

    r99758 r103341  
    353353{
    354354    char        szTmp[64]; /* Worker functions assumes 64 byte buffer! Ugly but faster. */
    355     va_list     args;
    356355    size_t      cch = 0;
    357356    const char *pszStartOutput = pszFormat;
    358357
    359     va_copy(args, InArgs); /* make a copy so we can reference it (AMD64 / gcc). */
     358    /* make a local copy so we can reference it (AMD64 / gcc). */
     359    va_list     args;
     360    va_copy(args, InArgs);
    360361
    361362    while (*pszFormat != '\0')
     
    861862    pfnOutput(pvArgOutput, NULL, 0);
    862863
     864    va_end(args);
    863865    return cch;
    864866}
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