From 2f5b282aab78bd2378df428c57c5fd1cc09e9f4f Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Wed, 18 Sep 2019 00:52:07 +0900
Subject: [PATCH] udevadm: missing initialization of descriptor

Reference: https://github.com/systemd/systemd/commit/2f5b282aab78bd2378df428c57c5fd1cc09e9f4f
Conflict: NA
---
 src/udev/udev-ctrl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index b38370883f..751e034982 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -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,
         };
 
-- 
2.23.0

