]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm: missing initialization of descriptor
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Sep 2019 15:52:07 +0000 (00:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Sep 2019 16:29:40 +0000 (01:29 +0900)
src/udev/udev-ctrl.c

index b38370883f7dd0f8e269389071cc9d197858c87f..751e03498233c4507bc34953f6461610798b882e 100644 (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,
         };