VirtualBox

Changeset 63542 in vbox for trunk


Ignore:
Timestamp:
Aug 16, 2016 11:28:21 AM (8 years ago)
Author:
vboxsync
Message:

USBProxyBackendSolaris.cpp: warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/solaris/USBProxyBackendSolaris.cpp

    r62485 r63542  
    284284             * Optional (some devices don't have all these)
    285285             */
     286            char *pszCopy;
    286287            if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-product-name", &pStr) > 0)
    287288            {
    288                 pCur->pszProduct = RTStrDup(pStr);
    289                 USBLibPurgeEncoding(pCur->pszProduct);
     289                pCur->pszProduct = pszCopy = RTStrDup(pStr);
     290                USBLibPurgeEncoding(pszCopy);
    290291            }
    291292
    292293            if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-vendor-name", &pStr) > 0)
    293294            {
    294                 pCur->pszManufacturer = RTStrDup(pStr);
    295                 USBLibPurgeEncoding(pCur->pszManufacturer);
     295                pCur->pszManufacturer = pszCopy = RTStrDup(pStr);
     296                USBLibPurgeEncoding(pszCopy);
    296297            }
    297298
    298299            if (di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "usb-serialno", &pStr) > 0)
    299300            {
    300                 pCur->pszSerialNumber = RTStrDup(pStr);
    301                 USBLibPurgeEncoding(pCur->pszSerialNumber);
     301                pCur->pszSerialNumber = pszCopy = RTStrDup(pStr);
     302                USBLibPurgeEncoding(pszCopy);
    302303            }
    303304
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