1
0
Fork 0

Fix typos in src/Input/FGLinuxEventInput.cxx

This commit is contained in:
Florent Rougon 2017-12-23 00:04:21 +01:00
parent 216d2328a3
commit c325a8d2cd

View file

@ -484,8 +484,8 @@ void FGLinuxEventInput::postinit()
const char * serial = udev_device_get_sysattr_value(dev, "serial");
SG_LOG(SG_INPUT,SG_DEBUG, "name=" << (name?name:"<null>") << ", node=" << (node?node:"<null>"));
if( name && node ) {
std::string serialString = serial ? serial : std::stringP{};
AddDevice( new FGLinuxInputDevice(name, node, serial) );
std::string serialString = serial ? serial : std::string{};
AddDevice( new FGLinuxInputDevice(name, node, serialString) );
}
udev_device_unref(dev);