mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
sd-netlink: make netlink_get_reply_callback_count() accept NULL
This commit is contained in:
@@ -466,7 +466,8 @@ static int timeout_compare(const void *a, const void *b) {
|
||||
}
|
||||
|
||||
size_t netlink_get_reply_callback_count(sd_netlink *nl) {
|
||||
assert(nl);
|
||||
if (!nl)
|
||||
return 0;
|
||||
|
||||
return hashmap_size(nl->reply_callbacks);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user