mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
sd-network: allow NULL in sd_network_monitor_unref
Match rest of codebase, we always allow unref'ing NULL.
This commit is contained in:
parent
aa0d0ed6b8
commit
0b3476266f
@ -329,10 +329,10 @@ _public_ int sd_network_monitor_new(sd_network_monitor **m, const char *category
|
||||
_public_ sd_network_monitor* sd_network_monitor_unref(sd_network_monitor *m) {
|
||||
int fd;
|
||||
|
||||
assert_return(m, NULL);
|
||||
|
||||
if (m) {
|
||||
fd = MONITOR_TO_FD(m);
|
||||
close_nointr(fd);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user