VirtualBox

Changeset 35599 in vbox


Ignore:
Timestamp:
Jan 18, 2011 9:52:52 AM (14 years ago)
Author:
vboxsync
Message:

Main/linux/USBGetDevices: fix a crash due to a missed error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r34716 r35599  
    977977                     entry.d_name) < 0)
    978978            return RTErrConvertFromErrno(errno);
    979         pszPath = RTStrDup(realpath(szPath, szRealPath));
     979        if (!realpath(szPath, szRealPath))
     980            return RTErrConvertFromErrno(errno);
     981        pszPath = RTStrDup(szRealPath);
    980982        if (!pszPath)
    981983            return VERR_NO_MEMORY;
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