Skip to content
Commit d7e13978 authored by Ondrej Holy's avatar Ondrej Holy
Browse files

metadata: Prevent usage of NULL if GUdevDevice is not found

Code to determine tree name from device has been recently ported from
udev to gudev by commit c2d85644. Unfortunately, the gudev code floods
logs by the following messages if device is not found (it can happen
e.g. for tmpfs):
g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed

Udev code silently returned if NULL device was used, however, corresponding
gudev code prints the mentioned messages. Let's prevent usage of NULL
device in order to prevent those messages.

https://bugzilla.gnome.org/show_bug.cgi?id=795191
parent d47e70ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment