VirtualBox

Changeset 36431 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Mar 25, 2011 2:14:21 PM (14 years ago)
Author:
vboxsync
Message:

Main/USBProxyServiceLinux: fix segfault

File:
1 edited

Legend:

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

    r36418 r36431  
    123123        PCUSBDEVTREELOCATION pcLocation;
    124124        pcLocation = USBProxyLinuxGetDeviceRoot(fUseSysfs);
    125         pcszUsbRoot = pcLocation->szDevicesRoot;
    126         fUseSysfs = pcLocation->fUseSysfs;
     125        if (pcLocation)
     126        {
     127            pcszUsbRoot = pcLocation->szDevicesRoot;
     128            fUseSysfs = pcLocation->fUseSysfs;
     129        }
    127130    }
    128131    if (pcszUsbRoot)
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