sd-device-enumerator: FOREACH_DEVICE_PROPERTY() does not provide NULL value
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Aug 2022 14:19:49 +0000 (23:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Aug 2022 16:17:03 +0000 (01:17 +0900)
commitb07131facff9a6937e595caa2c4f020586ba98a5
treee2c7653d053ee5413ec97942ef1edbec7816fdfc
parent585f2035b37a073dcea5c61e26ccb869b1c43578
sd-device-enumerator: FOREACH_DEVICE_PROPERTY() does not provide NULL value

Hence, when sd_device_enumerator_add_match_property() called with NULL
for value, then the filter always unmatches with the device.
src/libsystemd/sd-device/device-enumerator.c
src/libsystemd/sd-device/device-monitor.c
src/libsystemd/sd-device/device-util.c
src/libsystemd/sd-device/device-util.h