mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-06 13:48:18 +02:00
lib: up_device_to_text() won't work for fake devices
For now, up_device_to_text() won't work for devices that aren't backed by a UPower device.
This commit is contained in:
parent
010ab14505
commit
e0fb5078bd
1 changed files with 1 additions and 0 deletions
|
|
@ -258,6 +258,7 @@ up_device_to_text (UpDevice *device)
|
|||
UpDeviceKind kind;
|
||||
|
||||
g_return_val_if_fail (UP_IS_DEVICE (device), NULL);
|
||||
g_return_val_if_fail (device->priv->proxy_device != NULL, NULL);
|
||||
|
||||
priv = device->priv;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue