VirtualBox

Changeset 103342 in vbox for trunk


Ignore:
Timestamp:
Feb 14, 2024 1:50:42 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161655
Message:

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

File:
1 edited

Legend:

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

    r101470 r103342  
    16891689        return rc;
    16901690
     1691    /* First pass, go over all strings and find out how much we have to add in total. */
     1692    uint32_t cbStrings = 0;
    16911693    va_list vaCopy;
    16921694    va_copy(vaCopy, va);
    1693 
    1694     /* First pass, go over all strings and find out how much we have to add in total. */
    1695     uint32_t cbStrings = 0;
    16961695    for (uint32_t i = 0; i < cStrings; i++)
    16971696        cbStrings += (uint32_t)strlen(va_arg(vaCopy, const char *)) + 1; /* Include terminator. */
     1697    va_end(vaCopy);
    16981698
    16991699    uint32_t cbProp = RT_ALIGN_32(cbStrings + 3 * sizeof(uint32_t), sizeof(uint32_t)); /* Account for property token and the property data. */
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