VirtualBox

Changeset 26478 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Feb 13, 2010 3:40:17 AM (15 years ago)
Author:
vboxsync
Message:

getoptargv.cpp: bug fix.

File:
1 edited

Legend:

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

    r26476 r26478  
    191191        /* Parse and copy the string over. */
    192192        RTUNICP CpQuote = 0;
     193        RTUNICP Cp;
    193194        for (;;)
    194195        {
    195             RTUNICP Cp;
    196196            rc = RTStrGetCpEx(&pszSrc, &Cp);
    197             if (RT_FAILURE(rc))
    198                 break;
    199             if (!Cp)
     197            if (RT_FAILURE(rc) || !Cp)
    200198                break;
    201199            if (!CpQuote)
     
    214212        }
    215213        *pszDst++ = '\0';
    216         if (RT_FAILURE(rc))
     214        if (RT_FAILURE(rc) || !Cp)
    217215            break;
    218216    }
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