1
1
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:
Tom Gundersen 2015-06-10 15:55:09 +02:00
parent aa0d0ed6b8
commit 0b3476266f

View File

@ -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;
}