Skip to content

Commit

Permalink
udevadm: missing initialization of descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Sep 17, 2019
1 parent 69cebea commit 2f5b282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/udev/udev-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 2f5b282

Please sign in to comment.