Closed luttermann closed 4 months ago
If a UPower device (such as a wireless mouse/keyboard) is removed UPower::getUpDeviceInfo() will succeeded, but the struct will be filled with null values, and then the std::strcmp will fail! A simple nullptr check will avoid this.
UPower::getUpDeviceInfo()
std::strcmp
If a UPower device (such as a wireless mouse/keyboard) is removed
UPower::getUpDeviceInfo()
will succeeded, but the struct will be filled with null values, and then thestd::strcmp
will fail! A simple nullptr check will avoid this.