sd-device: make sd_device_get_xxx() accept NULL for storing result
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Feb 2021 15:28:16 +0000 (00:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Feb 2021 19:40:23 +0000 (04:40 +0900)
commit45e093a968d002dbce2c9fd2ceb8019b9c9f6551
tree491ee6ace87d5b11aebea7fbc0a8c6f43b49c465
parent163e0a882c384e8a7d5acf24f51c3b445b6decf7
sd-device: make sd_device_get_xxx() accept NULL for storing result

Though, setting NULL for some getters, e.g. sd_device_get_syspath()
may be meaningless, but anyway also let's make them accept NULL for
consistency.
src/libsystemd/sd-device/sd-device.c