sd-device: use qsort_safe() (#10099)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Sep 2018 14:46:58 +0000 (23:46 +0900)
committerGitHub <noreply@github.com>
Sun, 16 Sep 2018 14:46:58 +0000 (23:46 +0900)
commit5485deee6e3b688d30301f7c00798b6f3af188f3
tree8a94e8a332a83ce64fb25beb93a63e2c03c8c9de
parent32397af3d435aab0895889d9b89a6950b6246a80
sd-device: use qsort_safe() (#10099)

The number of found devices may be zero. So, let's use qsort_safe().

Follow-up for 0a1665890cec06032a17c16206e9f519ca88446e.
Fixes #10096.
src/libsystemd/sd-device/device-enumerator.c