libvirt/tools/nss
Michal Privoznik 1ab5a37c4a Don't call qsort() over NULL
In a few places it may happen that the array we want to sort is
still NULL (e.g. because there were no leases found, no paths for
secdriver to lock or no cache banks). However, passing NULL to
qsort() is undefined and even though glibc plays nicely we
shouldn't rely on undefined behaviour.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
2021-06-14 14:16:44 +02:00
..
libvirt_guest_nss.syms
libvirt_nss_bsd.syms
libvirt_nss_leases.c
libvirt_nss_leases.h
libvirt_nss_macs.c
libvirt_nss_macs.h
libvirt_nss.c Don't call qsort() over NULL 2021-06-14 14:16:44 +02:00
libvirt_nss.h
libvirt_nss.syms
meson.build meson: Fix build with -Dtest_coverage=true 2021-01-19 16:25:50 +01:00