]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-netlink/netlink-types.c
sd-netlink: don't treat type_system->count==0 as invalid
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 23 Jun 2015 10:03:10 +0000 (12:03 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 24 Jun 2015 11:45:56 +0000 (13:45 +0200)
commite7de105cf67dc8e4936043c4093c7b4119c9fc55
tree001747bb3df7931d598d0d19fec4d9feddeb598a
parent12b7dff45b0e2442355008a1e53f1211bd227147
sd-netlink: don't treat type_system->count==0 as invalid

Empty type-systems are just fine. Avoid the nasty hack in
union-type-systems that treat empty type-systems as invalid. Instead check
for the actual types-array and make sure it's non-NULL (which is even true
for empty type-systems, due to "empty_types" array).
src/libsystemd/sd-netlink/netlink-types.c