VirtualBox

Ignore:
Timestamp:
Oct 19, 2011 11:08:50 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74450
Message:

IPRT: Fixed unused variable warnings.

File:
1 edited

Legend:

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

    r36407 r39032  
    55
    66/*
    7  * Copyright (C) 2010 Oracle Corporation
     7 * Copyright (C) 2010-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939     * a copy operation.
    4040     */
    41     size_t  cbDst  = *pcbDst;
    42     char   *pszDst = RTStrEnd(*ppszDst, *pcbDst);
     41    char   *pszDstOrg = *ppszDst;
     42    size_t  cbDst     = *pcbDst;
     43    char   *pszDst    = RTStrEnd(pszDstOrg, cbDst);
    4344    AssertReturn(pszDst, VERR_INVALID_PARAMETER);
    44     *pcbDst -= pszDst - *ppszDst;
    4545    *ppszDst = pszDst;
     46    *pcbDst  = cbDst - (pszDst - pszDstOrg);
    4647
    4748    return RTStrCopyP(ppszDst, pcbDst, pszSrc);
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