chiark / gitweb /
machinectl: fix warning when compiling with -Og
[elogind.git] / src / machine / machinectl.c
index 7a252c34aab02d3b59e79f3d3cb944329175c44a..5a6bb056b1dc07ab4c1eb76a8916a87d1030b8b4 100644 (file)
@@ -528,7 +528,7 @@ static int openpt_in_namespace(pid_t pid, int flags) {
                 uint8_t buf[CMSG_SPACE(sizeof(int))];
         } control;
         struct cmsghdr *cmsg;
-        int master, r;
+        int master = -1, r;
         pid_t child;
         siginfo_t si;