udevadm: missing initialization of descriptor

This commit is contained in:
Yu Watanabe
2019-09-18 01:29:40 +09:00
parent 69cebea78a
commit 2f5b282aab
+1
View File
@@ -76,6 +76,7 @@ int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) {
*uctrl = (struct udev_ctrl) {
.n_ref = 1,
.sock = fd >= 0 ? fd : TAKE_FD(sock),
.sock_connect = -1,
.bound = fd >= 0,
};